git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19769 from groxxda/license

stdenv.hasLicense: ? supports nested lookup

commit3d5630fac9c918ea66e230a779e3d968750a3cf1 authorJoachim F <joachifm@users.noreply.github.com> dateMon 24 Oct 2016, 15:19 (10 years ago) parenta953b6c43ce115
1 file changed+1−1
pkgs/stdenv/generic/default.nix+1−1
pkgs/stdenv/generic/default.nix+1−1
@@ -44,7 +44,7 @@ let
4444 throw "whitelistedLicenses and blacklistedLicenses are not mutually exclusive.";
4545
4646 hasLicense = attrs:
47− builtins.hasAttr "meta" attrs && builtins.hasAttr "license" attrs.meta;
47+ attrs ? meta.license;
4848
4949 hasWhitelistedLicense = assert areLicenseListsValid; attrs:
5050 hasLicense attrs && builtins.elem attrs.meta.license whitelist;