From 999bfbba9a25fffd8514f898083b8fb38b14400a Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Mon, 9 Dec 2024 04:32:14 -0800 Subject: [PATCH] rnls: more noci --- .../language_server_rust_analyzer/rnls.nix | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/modules/kernels/rust/language_server_rust_analyzer/rnls.nix b/modules/kernels/rust/language_server_rust_analyzer/rnls.nix index 06fff91f..deb8d852 100644 --- a/modules/kernels/rust/language_server_rust_analyzer/rnls.nix +++ b/modules/kernels/rust/language_server_rust_analyzer/rnls.nix @@ -1,6 +1,6 @@ { fetchzip , stdenv -, haskell +, system }: # Build from source method. Blows up the closure! @@ -23,13 +23,25 @@ stdenv.mkDerivation { pname = "rust-notebook-language-server"; version = "0.2.2.0"; - src = fetchzip { - url = "https://github.com/codedownio/rust-notebook-language-server/releases/download/v0.2.2.0/rust-notebook-language-server-0.2.2.0-x86_64-linux.tar.gz"; - sha256 = "sha256-W1gM48Rc4xhNcpdKmTQH0qZR3Y+r/AKEjXdI8oq+ZjA="; - }; + src = { + # HASHES_START + "x86_64-linux" = fetchzip { + url = "https://github.com/codedownio/rust-notebook-language-server/releases/download/v0.2.3.0/rust-notebook-language-server-0.2.3.0-x86_64-linux.tar.gz"; + sha256 = ""; + }; + "x86_64-darwin" = fetchzip { + url = "https://github.com/codedownio/rust-notebook-language-server/releases/download/v0.2.3.0/rust-notebook-language-server-0.2.3.0-x86_64-darwin.tar.gz"; + sha256 = ""; + }; + "aarch64-darwin" = fetchzip { + url = "https://github.com/codedownio/rust-notebook-language-server/releases/download/v0.2.3.0/rust-notebook-language-server-0.2.3.0-aarch64-darwin.tar.gz"; + sha256 = ""; + }; + # HASHES_END + }.${system}; installPhase = '' mkdir -p $out/bin - cp rust-notebook-language-server-0.2.2.0-x86_64-linux $out/bin/rust-notebook-language-server + cp rust-notebook-language-server-0.2.2.0-${system} $out/bin/rust-notebook-language-server ''; }