summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2021-05-03 16:42:08 +0200
committerGitHub <noreply@github.com>2021-05-03 16:42:08 +0200
commit680a901ae1afab7bd6b8db80eab6ebed8b8e17b8 (patch)
tree8851c25f756fc8322ec6b03ccb6ec921f93016ed /lib
parent3e930b7e4af198da958cd3abc614aded8500314f (diff)
parent8a83d611f578076031c4cd30b0a5f4cf43188129 (diff)
downloadnixpkgs-680a901ae1afab7bd6b8db80eab6ebed8b8e17b8.tar
nixpkgs-680a901ae1afab7bd6b8db80eab6ebed8b8e17b8.tar.gz
nixpkgs-680a901ae1afab7bd6b8db80eab6ebed8b8e17b8.tar.bz2
nixpkgs-680a901ae1afab7bd6b8db80eab6ebed8b8e17b8.tar.lz
nixpkgs-680a901ae1afab7bd6b8db80eab6ebed8b8e17b8.tar.xz
nixpkgs-680a901ae1afab7bd6b8db80eab6ebed8b8e17b8.tar.zst
nixpkgs-680a901ae1afab7bd6b8db80eab6ebed8b8e17b8.zip
Merge pull request #120774 from sternenseemann/shellpackage-fix-check
lib/types: only accept derivations for shellPackage
Diffstat (limited to 'lib')
-rw-r--r--lib/types.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index d0a8e96149d..31ce440bcb4 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -337,7 +337,7 @@ rec {
     };
 
     shellPackage = package // {
-      check = x: (package.check x) && (hasAttr "shellPath" x);
+      check = x: isDerivation x && hasAttr "shellPath" x;
     };
 
     path = mkOptionType {