mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
maintainers/scripts/update.nix: derivation is the final station
It does not make sense to look for derivations within derivations,
not even when `recurseForDerivations` is true. Nix does not do that either:
ebc024df22/src/libexpr/get-drvs.cc (L346-L355)
This commit is contained in:
parent
8f50956ee0
commit
fab2ee8c10
@ -32,8 +32,8 @@ let
|
||||
(name: pkg:
|
||||
let
|
||||
result = builtins.tryEval (
|
||||
if lib.isDerivation pkg && cond name pkg
|
||||
then [(return name pkg)]
|
||||
if lib.isDerivation pkg
|
||||
then lib.optional (cond name pkg) (return name pkg)
|
||||
else if pkg.recurseForDerivations or false || pkg.recurseForRelease or false
|
||||
then packagesWith cond return pkg
|
||||
else []
|
||||
|
Loading…
Reference in New Issue
Block a user