mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
find-tarballs.nix: Avoid all passthru attrs
Avoiding passthru itself was the right direction, but not a complete solution. Passthru attributes typically do not contain dependencies, but rather extra paths that are not relevant to the build itself. Whether we want to include all (passthru) test dependencies this way can be debated, but removing them makes this expression more robust.
This commit is contained in:
@@ -37,7 +37,7 @@ let
|
||||
keyDrv = drv: if canEval drv.drvPath then { key = drv.drvPath; value = drv; } else { };
|
||||
|
||||
immediateDependenciesOf = drv:
|
||||
concatLists (mapAttrsToList (n: v: derivationsIn v) (removeAttrs drv ["meta" "passthru"]));
|
||||
concatLists (mapAttrsToList (n: v: derivationsIn v) (removeAttrs drv (["meta" "passthru"] ++ optionals (drv?passthru) (attrNames drv.passthru))));
|
||||
|
||||
derivationsIn = x:
|
||||
if !canEval x then []
|
||||
|
||||
Reference in New Issue
Block a user