Skip to content

Commit

Permalink
meta.sourceProvenance: inline hasSourceProvenance
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
risicle and Adam Joseph committed May 20, 2022
1 parent 27db166 commit 97bb4aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkgs/stdenv/generic/check-meta.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97bb4aa

Please sign in to comment.