From 19e8d6e28807b4f85cc3b6d7aeb36dc9de8ecea6 Mon Sep 17 00:00:00 2001 From: Aja Sibley Date: Wed, 17 May 2023 20:52:11 +0000 Subject: [PATCH] Added vesp overlay. --- cosmonic-fix.txt | 3 +++ vespa-cli-overlay.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 cosmonic-fix.txt create mode 100644 vespa-cli-overlay.nix 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 + ''; + }; +}