flake.nix: fix buildRustPackage src

This commit is contained in:
Astro 2021-11-09 01:05:54 +01:00
parent dda6953535
commit bbe57ffa66
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,6 @@
buildRustPackage = args: naersk-lib.buildPackage ({
root = ./.;
src = ./heliwatch;
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl ];
} // args);
@ -32,12 +31,15 @@
# `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;