Fixed the vespa overlay.

This commit is contained in:
Aja Sibley 2023-05-17 21:18:23 +00:00
parent 19e8d6e288
commit 933bb643a7
3 changed files with 32 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? import <nixpkgs> { overlays = [ (import ./vespa-cli-overlay.nix) ]; } }:
pkgs.mkShell {
buildInputs = with pkgs; [
@ -6,6 +6,7 @@ pkgs.mkShell {
cargo
tree
poetry
vespa-cli
];
shellHook = ''
cat <<'EOF'

26
shell.old Normal file
View file

@ -0,0 +1,26 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
just
cargo
tree
poetry
];
shellHook = ''
cat <<'EOF'
.-.
`-'
___ LoRA
.´ `'. _...._
: LLAMA : .' '.
'._____.' /`(o) (o)`\
_|_______|/ : : \
[_____________/ '------' \
/ o /
`"`"|"`"`"`"`"`"`"`""=""===""`
EOF
echo "gm gm ⟁"
'';
}

View file

@ -11,6 +11,9 @@ self: super:
};
buildInputs = [];
nativeBuildInputs = [ super.makeWrapper ];
dontBuild = true;
unpackPhase = ''
@ -21,8 +24,7 @@ self: super:
mkdir -p $out/bin
cp vespa-cli_${version}_darwin_arm64/bin/vespa $out/bin
chmod +x $out/bin/vespa
# Add an exception to allow the vespa binary to run
xattr -r -d com.apple.quarantine $out/bin/vespa
# Wrap the vespa binary to remove quarantine attribute
'';
};
}