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