Skip to content

Commit

Permalink
Merge pull request #19769 from groxxda/license
Browse files Browse the repository at this point in the history
stdenv.hasLicense: ? supports nested lookup
  • Loading branch information
joachifm committed Oct 24, 2016
2 parents a953b6c + 43ce115 commit 3d5630f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/stdenv/generic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let
throw "whitelistedLicenses and blacklistedLicenses are not mutually exclusive.";

hasLicense = attrs:
builtins.hasAttr "meta" attrs && builtins.hasAttr "license" attrs.meta;
attrs ? meta.license;

hasWhitelistedLicense = assert areLicenseListsValid; attrs:
hasLicense attrs && builtins.elem attrs.meta.license whitelist;
Expand Down

0 comments on commit 3d5630f

Please sign in to comment.