Skip to content

Commit 71cf6da

Browse files
committed
feat(packages): Expose rust-overlay
1 parent f169122 commit 71cf6da

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

packages/default.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33
perSystem = {
44
self',
55
inputs',
6+
pkgs,
67
...
7-
}: {
8+
}: let
9+
rust-overlay = inputs.rust-overlay.overlays.default;
10+
pkgs-extended = pkgs.extend rust-overlay;
11+
rust-stable = pkgs-extended.rust-bin.stable.latest.default.override {
12+
extensions = ["rust-src"];
13+
targets = ["wasm32-wasi" "wasm32-unknown-unknown"];
14+
};
15+
in {
816
packages = self'.legacyPackages.metacraft-labs;
917

1018
overlayAttrs = {
@@ -13,6 +21,13 @@
1321

1422
legacyPackages = {
1523
nix2container = inputs'.nix2container.packages.nix2container;
24+
25+
rust-stable = rust-stable;
26+
27+
rustPlatformStable = pkgs.makeRustPlatform {
28+
rustc = rust-stable;
29+
cargo = rust-stable;
30+
};
1631
};
1732
};
1833
}

0 commit comments

Comments
 (0)