From 438911c18d4c93c18ddfb645ad9ec881bb2f7d90 Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 7 Jul 2024 12:34:28 -0400 Subject: [PATCH] nix: remove unnecessary dependencies gathering from allFeatures Signed-off-by: strawberry --- nix/pkgs/main/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nix/pkgs/main/default.nix b/nix/pkgs/main/default.nix index 5c8ade13..2897e675 100644 --- a/nix/pkgs/main/default.nix +++ b/nix/pkgs/main/default.nix @@ -25,11 +25,7 @@ let # on the nix side depend on feature values. crateFeatures = path: let manifest = lib.importTOML "${path}/Cargo.toml"; in - lib.remove "default" (lib.attrNames manifest.features) ++ - lib.attrNames - (lib.filterAttrs - (_: dependency: dependency.optional or false) - manifest.dependencies); + lib.remove "default" (lib.attrNames manifest.features); crateDefaultFeatures = path: (lib.importTOML "${path}/Cargo.toml").features.default; allDefaultFeatures = crateDefaultFeatures "${inputs.self}/src/main";