diff options
author | Robert Scott <github@humanleg.org.uk> | 2022-05-20 20:17:02 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2022-05-30 16:27:34 +0800 |
commit | 5bb9bf47740bb98bf6c2c404a086d7ed6a5c595d (patch) | |
tree | 3d1eeb8b7f9040d80698818c33675dc5186b5065 /pkgs/stdenv | |
parent | 7906ea6d9d938c7f4221c305cfbcc9f8ba63804a (diff) |
meta.sourceProvenance: inline hasSourceProvenance
it may be what the license handling code does, but it's confusing and not very useful Co-authored-by: Adam Joseph <54836058+a-m-joseph@users.noreply.github.com>
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/generic/check-meta.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix index 96e2a40b2de9c..4e5db210637a6 100644 --- a/pkgs/stdenv/generic/check-meta.nix +++ b/pkgs/stdenv/generic/check-meta.nix @@ -89,13 +89,11 @@ let allowInsecurePredicate attrs || builtins.getEnv "NIXPKGS_ALLOW_INSECURE" == "1"; - hasSourceProvenance = attrs: - attrs ? meta.sourceProvenance; isNonSource = sourceTypes: lib.lists.any (t: !t.isSource) sourceTypes; hasNonSourceProvenance = attrs: - hasSourceProvenance attrs && + (attrs ? meta.sourceProvenance) && isNonSource (lib.lists.toList attrs.meta.sourceProvenance); # Allow granular checks to allow only some non-source-built packages |