Skip to content

Commit 2632ed9

Browse files
committed
[nix] Bump toolchains, add cargo-hyperlight dependency
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 18ffa5a commit 2632ed9

1 file changed

Lines changed: 29 additions & 17 deletions

File tree

flake.nix

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@
7575
# for rustfmt and old toolchains to verify MSRV
7676
toolchains = lib.mapAttrs (_: customisedRustChannelOf) {
7777
stable = {
78-
date = "2025-09-18";
78+
date = "2025-12-11";
7979
channel = "stable";
80-
sha256 = "sha256-SJwZ8g0zF2WrKDVmHrVG3pD2RGoQeo24MEXnNx5FyuI=";
80+
sha256 = "sha256-sqSWJDUxc+zaz1nBWMAJKTAGBuGWP25GCftIOlCEAtA=";
8181
};
8282
nightly = {
83-
date = "2025-07-29";
83+
date = "2026-01-19";
8484
channel = "nightly";
85-
sha256 = "sha256-6D2b7glWC3jpbIGCq6Ta59lGCKN9sTexhgixH4Y7Nng=";
85+
sha256 = "sha256-Ye65U/qzilPLte800N5oxFOY96shgG8bST8dbrF6Qh0=";
8686
};
87-
"1.88" = {
88-
date = "2025-06-26";
87+
"1.89" = {
88+
date = "2025-08-07";
8989
channel = "stable";
90-
sha256 = "sha256-Qxt8XAuaUR2OMdKbN4u8dBJOhSHxS+uS06Wl9+flVEk=";
90+
sha256 = "sha256-+9FmLhAOezBZCOziO0Qct1NOrfpjNsXxc/8I0c7BdKE=";
9191
};
9292
};
9393

@@ -110,14 +110,14 @@
110110
clauses = lib.strings.concatStringsSep "\n"
111111
(lib.mapAttrsToList clause toolchains);
112112
in ''
113-
base="${toolchains.stable.rust}"
114-
case "$1" in
115-
${clauses}
116-
install) exit 0; ;;
117-
esac
118-
export PATH="$base/bin:$PATH"
119-
exec "$base/bin/${name}" "$@"
120-
'');
113+
base="${toolchains.stable.rust}"
114+
case "$1" in
115+
${clauses}
116+
install) exit 0; ;;
117+
esac
118+
export PATH="$base/bin:$PATH"
119+
exec "$base/bin/${name}" "$@"
120+
'');
121121
fake-rustup = pkgs.symlinkJoin {
122122
name = "fake-rustup";
123123
paths = [
@@ -128,7 +128,18 @@
128128
};
129129

130130
buildRustPackageClang = rust-platform.buildRustPackage.override { stdenv = clangStdenv; };
131-
in (buildRustPackageClang rec {
131+
cargo-hyperlight = buildRustPackageClang rec {
132+
pname = "cargo-hyperlight";
133+
version = "0.1.5";
134+
src = fetchFromGitHub {
135+
owner = "hyperlight-dev";
136+
repo = "cargo-hyperlight";
137+
tag = "v${version}";
138+
hash = "sha256-xq4/c69N0wG/I8WOYVloo0J0JqoSIKiWWtECdSKrsxo=";
139+
};
140+
cargoHash = "sha256-muiMVrK1TydQiMitihfo7xYidqUIIQ+Hw3BIeo5rLFw=";
141+
};
142+
in (buildRustPackageClang (mkDerivationAttrs: {
132143
pname = "hyperlight";
133144
version = "0.0.0";
134145
src = lib.cleanSource ./.;
@@ -150,6 +161,7 @@
150161
jaq
151162
gdb
152163
zlib
164+
cargo-hyperlight
153165
];
154166
buildInputs = [
155167
pango
@@ -169,7 +181,7 @@
169181
postHook = ''
170182
export PATH="${fake-rustup}/bin:$PATH"
171183
'';
172-
}).overrideAttrs(oA: {
184+
})).overrideAttrs(oA: {
173185
hardeningDisable = [ "all" ];
174186
});
175187
};

0 commit comments

Comments
 (0)