flake.nix: Use stable rust

This commit is contained in:
Simon Bruder 2022-07-16 17:51:36 +02:00
parent 6be5f24dca
commit 6c0af02754
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -13,10 +13,10 @@
outputs = { self, nixpkgs, rust-overlay, flake-utils, naersk }: flake-utils.lib.eachDefaultSystem (system:
let
overlays = [
rust-overlay.overlay
rust-overlay.overlays.default
(final: prev: {
rustc = final.rust-bin.nightly.latest.default.override { targets = [ "wasm32-unknown-unknown" ]; };
cargo = final.rust-bin.nightly.latest.default.override { targets = [ "wasm32-unknown-unknown" ]; };
rustc = final.rust-bin.stable.latest.default.override { targets = [ "wasm32-unknown-unknown" ]; };
cargo = final.rust-bin.stable.latest.default.override { targets = [ "wasm32-unknown-unknown" ]; };
})
];
pkgs = import nixpkgs { inherit system overlays; };
@ -77,7 +77,7 @@
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
wasm-pack
(rust-bin.nightly.latest.default.override { targets = [ "wasm32-unknown-unknown" ]; })
(rust-bin.stable.latest.default.override { targets = [ "wasm32-unknown-unknown" ]; })
];
};