added common cargoBuildInputs to all flake outputs
This commit is contained in:
parent
b2df015fe6
commit
e6bc13ff04
13
flake.nix
13
flake.nix
|
@ -14,14 +14,17 @@
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
|
cargoBuildInputs = with pkgs; lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk.frameworks.CoreServices
|
||||||
|
];
|
||||||
|
|
||||||
rustlings =
|
rustlings =
|
||||||
pkgs.rustPlatform.buildRustPackage {
|
pkgs.rustPlatform.buildRustPackage {
|
||||||
name = "rustlings";
|
name = "rustlings";
|
||||||
version = "5.2.1";
|
version = "5.2.1";
|
||||||
|
|
||||||
buildInputs = with pkgs; lib.optionals stdenv.isDarwin [
|
buildInputs = cargoBuildInputs;
|
||||||
darwin.apple_sdk.frameworks.CoreServices
|
|
||||||
];
|
|
||||||
|
|
||||||
src = with pkgs.lib; cleanSourceWith {
|
src = with pkgs.lib; cleanSourceWith {
|
||||||
src = self;
|
src = self;
|
||||||
|
@ -53,7 +56,9 @@
|
||||||
rustc
|
rustc
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
rustlings
|
rustlings
|
||||||
];
|
rustfmt
|
||||||
|
clippy
|
||||||
|
] ++ cargoBuildInputs;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue