Merge pull request #120774 from sternenseemann/shellpackage-fix-check

lib/types: only accept derivations for shellPackage
This commit is contained in:
Silvan Mosberger 2021-05-03 16:42:08 +02:00 committed by GitHub
commit 680a901ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,7 +337,7 @@ rec {
};
shellPackage = package // {
check = x: (package.check x) && (hasAttr "shellPath" x);
check = x: isDerivation x && hasAttr "shellPath" x;
};
path = mkOptionType {