flake.nix: fix buildRustPackage src

This commit is contained in:
Astro 2021-11-09 01:13:27 +01:00
parent c3b0b85828
commit 3455a8d579
1 changed files with 2 additions and 4 deletions

View File

@ -23,7 +23,8 @@
};
buildRustPackage = args: naersk-lib.buildPackage ({
root = ./.;
src = ./.;
targets = [ args.pname ];
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl ];
} // args);
@ -31,15 +32,12 @@
# `nix build`
packages.heliwatch = buildRustPackage {
pname = "heliwatch";
src = ./heliwatch;
};
packages.http-json = buildRustPackage {
pname = "http-json";
src = ./http-json;
};
packages.collectd-stats = buildRustPackage {
pname = "collectd-stats";
src = ./collectd-stats;
};
defaultPackage = packages.heliwatch;
checks = packages;