Skip to content

Commit ea8ffee

Browse files
committed
fix flake.nix
1 parent 55e5e2d commit ea8ffee

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

flake.nix

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,25 @@
1010
let
1111
pkgs = import nixpkgs { inherit system; };
1212
naersk-lib = pkgs.callPackage naersk { };
13+
nativeBuildInputs = with pkgs; [
14+
glib
15+
polkit
16+
pkg-config
17+
];
1318
in
1419
{
15-
packages.default = naersk-lib.buildPackage ./.;
20+
packages.default = naersk-lib.buildPackage {
21+
inherit nativeBuildInputs;
22+
src = ./.;
23+
};
1624
devShells.default = with pkgs; mkShell {
25+
inherit nativeBuildInputs;
1726
buildInputs = [
1827
cargo
1928
rustc
2029
rustfmt
2130
pre-commit
2231
rustPackages.clippy
23-
24-
glib
25-
polkit
26-
pkg-config
2732
];
2833
RUST_SRC_PATH = rustPlatform.rustLibSrc;
2934
};

0 commit comments

Comments
 (0)