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

lib/types: only accept derivations for shellPackage
master
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
1 changed files with 1 additions and 1 deletions

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 {