From 66ff9f0c30506eaf92c986bc50b8076bdd35fc0f Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 9 Nov 2021 01:24:26 +0100 Subject: [PATCH] flake.nix: fix buildRustPackage targets --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index f437b39..ec7424c 100644 --- a/flake.nix +++ b/flake.nix @@ -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`