diff --git a/cosmonic-fix.txt b/cosmonic-fix.txt new file mode 100644 index 000000000..f88f3be8c --- /dev/null +++ b/cosmonic-fix.txt @@ -0,0 +1,3 @@ +if there areissue running cosmonic run: +rustup default stable +rustup target add wasm32-unknown-unknown diff --git a/vespa-cli-overlay.nix b/vespa-cli-overlay.nix new file mode 100644 index 000000000..1f54b5b05 --- /dev/null +++ b/vespa-cli-overlay.nix @@ -0,0 +1,28 @@ +self: super: + +{ + vespa-cli = super.stdenv.mkDerivation rec { + pname = "vespa-cli"; + version = "8.162.29"; + + src = super.fetchurl { + url = "https://github.com/vespa-engine/vespa/releases/download/v${version}/vespa-cli_${version}_darwin_arm64.tar.gz"; + sha256 = "05cdabe044ac34a74eca66ade3db49b7a1db29c691e7f8bbd1e71ab991548688"; + }; + + buildInputs = []; + dontBuild = true; + + unpackPhase = '' + tar -xzf $src + ''; + + installPhase = '' + 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 + ''; + }; +}