Skip to content

Commit

Permalink
feat(packages): Expose rust-nightly and craneLib-nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed Jul 22, 2023
1 parent f103fdf commit 0dce719
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@
extensions = ["rust-src"];
targets = ["wasm32-wasi" "wasm32-unknown-unknown"];
};
rust-nightly = pkgs-extended.rust-bin.nightly.latest.default.override {
extensions = ["rust-src"];
targets = ["wasm32-wasi" "wasm32-unknown-unknown"];
};

craneLib-stable = (inputs.crane.mkLib pkgs).overrideToolchain rust-stable;
craneLib-nightly = (inputs.crane.mkLib pkgs).overrideToolchain rust-nightly;
in {
packages = self'.legacyPackages.metacraft-labs;

Expand All @@ -31,12 +36,16 @@

noir = inputs'.noir.packages;

inherit rust-stable craneLib-stable;
inherit rust-stable rust-nightly craneLib-stable craneLib-nightly;

rustPlatformStable = pkgs.makeRustPlatform {
rustc = rust-stable;
cargo = rust-stable;
};
rustPlatformNightly = pkgs.makeRustPlatform {
rustc = rust-nightly;
cargo = rust-nightly;
};
};
};
}

0 comments on commit 0dce719

Please sign in to comment.