Skip to content

Commit 30d65e8

Browse files
authored
Merge pull request #2 from cpu/cpu-flake-tidy
flake: remove unused lists, add ansible-lint
2 parents cebcf85 + 02ae617 commit 30d65e8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

flake.nix

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,14 @@
1515
cargoToml =
1616
builtins.fromTOML (builtins.readFile "${crateDir}/Cargo.toml");
1717

18-
runtimeDeps = with pkgs; [ ];
19-
buildDeps = with pkgs; [ ];
20-
devDeps = with pkgs; [ pkgs.ansible ];
18+
devDeps = with pkgs; [ ansible ansible-lint ];
2119

2220
mkDevShell = rustc:
2321
pkgs.mkShell {
2422
shellHook = ''
2523
export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc}
2624
'';
27-
buildInputs = runtimeDeps;
28-
nativeBuildInputs = buildDeps ++ devDeps ++ [ rustc ];
25+
nativeBuildInputs = devDeps ++ [ rustc ];
2926
};
3027
in {
3128
_module.args.pkgs = import inputs.nixpkgs {
@@ -41,8 +38,6 @@
4138
cargoLock = {
4239
lockFile = "${crateDir}/Cargo.lock";
4340
};
44-
nativeBuildInputs = buildDeps;
45-
buildInputs = runtimeDeps;
4641
doCheck = false; # Some tests require platform certs.
4742
};
4843

0 commit comments

Comments
 (0)