nix: remove unnecessary dependencies gathering from allFeatures
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
bd71435a22
commit
438911c18d
1 changed files with 1 additions and 5 deletions
|
@ -25,11 +25,7 @@ let
|
||||||
# on the nix side depend on feature values.
|
# on the nix side depend on feature values.
|
||||||
crateFeatures = path:
|
crateFeatures = path:
|
||||||
let manifest = lib.importTOML "${path}/Cargo.toml"; in
|
let manifest = lib.importTOML "${path}/Cargo.toml"; in
|
||||||
lib.remove "default" (lib.attrNames manifest.features) ++
|
lib.remove "default" (lib.attrNames manifest.features);
|
||||||
lib.attrNames
|
|
||||||
(lib.filterAttrs
|
|
||||||
(_: dependency: dependency.optional or false)
|
|
||||||
manifest.dependencies);
|
|
||||||
crateDefaultFeatures = path:
|
crateDefaultFeatures = path:
|
||||||
(lib.importTOML "${path}/Cargo.toml").features.default;
|
(lib.importTOML "${path}/Cargo.toml").features.default;
|
||||||
allDefaultFeatures = crateDefaultFeatures "${inputs.self}/src/main";
|
allDefaultFeatures = crateDefaultFeatures "${inputs.self}/src/main";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue