flake.nix: fix buildRustPackage targets
This commit is contained in:
parent
3455a8d579
commit
66ff9f0c30
|
@ -25,6 +25,7 @@
|
|||
buildRustPackage = args: naersk-lib.buildPackage ({
|
||||
src = ./.;
|
||||
targets = [ args.pname ];
|
||||
cargoBuildOptions = opts: opts ++ [ "-p" args.pname ];
|
||||
nativeBuildInputs = with pkgs; [ pkg-config ];
|
||||
buildInputs = with pkgs; [ openssl ];
|
||||
} // args);
|
||||
|
@ -40,6 +41,7 @@
|
|||
pname = "collectd-stats";
|
||||
};
|
||||
defaultPackage = packages.heliwatch;
|
||||
|
||||
checks = packages;
|
||||
|
||||
# `nix run`
|
||||
|
|
Loading…
Reference in New Issue