From fe5dabec457e03fe2db270470f69e270bf4dcdf4 Mon Sep 17 00:00:00 2001 From: Kodi Craft Date: Sat, 22 Jun 2024 13:00:56 +0200 Subject: [PATCH] Fix build options --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 05b8334..d2d4613 100644 --- a/flake.nix +++ b/flake.nix @@ -22,12 +22,14 @@ unix = naersk-lib.buildPackage { src = ./.; doCheck = true; - cargoOptions = x: x ++ ["--no-default-features" "--features" "unix"]; + cargoBuildOptions = x: x ++ ["--no-default-features" "--features" "unix"]; + cargoTestOptions = x: x ++ ["--no-default-features" "--features" "unix"]; }; tcp = naersk-lib.buildPackage { src = ./.; doCheck = true; - cargoOptions = x: x ++ ["--no-default-features" "--features" "tcp"]; + cargoBuildOptions = x: x ++ ["--no-default-features" "--features" "tcp"]; + cargoTestOptions = x: x ++ ["--no-default-features" "--features" "tcp"]; }; }; devShell = with pkgs; mkShell {