generated from ElnuDev/rust-project
Clean up flake.nix
This commit is contained in:
parent
42d12b6888
commit
e2310a6554
1 changed files with 7 additions and 10 deletions
17
flake.nix
17
flake.nix
|
@ -32,18 +32,14 @@ Updating `cargoHash`:
|
|||
};
|
||||
# nightly is required for function signal syntax in leptos
|
||||
# https://leptos-rs.github.io/leptos/02_getting_started.html
|
||||
rust-bin = pkgs.rust-bin.nightly.latest.minimal;
|
||||
rust-binWasm = rust-bin.override {
|
||||
targets = [ "wasm32-unknown-unknown" ];
|
||||
};
|
||||
rust = pkgs.rust-bin.nightly.latest;
|
||||
# binary for output binary derivations
|
||||
# (doesn't include dev tooling e.g. clippy)
|
||||
rust-bin = rust.minimal;
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = rust-bin;
|
||||
rustc = rust-bin;
|
||||
};
|
||||
rustPlatformWasm = pkgs.makeRustPlatform {
|
||||
cargo = rust-binWasm;
|
||||
rustc = rust-binWasm;
|
||||
};
|
||||
rustSettings = with pkgs; {
|
||||
src = ./.;
|
||||
cargoHash = nixpkgs.lib.fakeHash;
|
||||
|
@ -56,8 +52,9 @@ Updating `cargoHash`:
|
|||
in {
|
||||
devShells.${system}.default = with pkgs; mkShell {
|
||||
packages = [
|
||||
(rust-binWasm.override {
|
||||
(rust.default.override {
|
||||
extensions = [ "rust-src" ];
|
||||
targets = [ "wasm32-unknown-unknown" ];
|
||||
})
|
||||
bacon
|
||||
];
|
||||
|
@ -75,7 +72,7 @@ Updating `cargoHash`:
|
|||
};
|
||||
});
|
||||
dyesub-tool = let
|
||||
rustToolchain = pkgs.rust-bin.nightly.latest.minimal.override {
|
||||
rustToolchain = rust.minimal.override {
|
||||
targets = [ "wasm32-unknown-unknown" ];
|
||||
};
|
||||
craneLib = ((crane.mkLib pkgs).overrideToolchain rustToolchain).overrideScope' (final: prev: {
|
||||
|
|
Loading…
Add table
Reference in a new issue