Skip to content

Commit 999bfbb

Browse files
author
Tom McLaughlin
committed
rnls: more noci
1 parent 6064eb8 commit 999bfbb

File tree

1 file changed

+18
-6
lines changed
  • modules/kernels/rust/language_server_rust_analyzer

1 file changed

+18
-6
lines changed

modules/kernels/rust/language_server_rust_analyzer/rnls.nix

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ fetchzip
22
, stdenv
3-
, haskell
3+
, system
44
}:
55

66
# Build from source method. Blows up the closure!
@@ -23,13 +23,25 @@ stdenv.mkDerivation {
2323
pname = "rust-notebook-language-server";
2424
version = "0.2.2.0";
2525

26-
src = fetchzip {
27-
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";
28-
sha256 = "sha256-W1gM48Rc4xhNcpdKmTQH0qZR3Y+r/AKEjXdI8oq+ZjA=";
29-
};
26+
src = {
27+
# HASHES_START
28+
"x86_64-linux" = fetchzip {
29+
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";
30+
sha256 = "";
31+
};
32+
"x86_64-darwin" = fetchzip {
33+
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";
34+
sha256 = "";
35+
};
36+
"aarch64-darwin" = fetchzip {
37+
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";
38+
sha256 = "";
39+
};
40+
# HASHES_END
41+
}.${system};
3042

3143
installPhase = ''
3244
mkdir -p $out/bin
33-
cp rust-notebook-language-server-0.2.2.0-x86_64-linux $out/bin/rust-notebook-language-server
45+
cp rust-notebook-language-server-0.2.2.0-${system} $out/bin/rust-notebook-language-server
3446
'';
3547
}

0 commit comments

Comments
 (0)