flake.nix: fix buildRustPackage src
This commit is contained in:
parent
dda6953535
commit
bbe57ffa66
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue