diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-06-12 20:03:14 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-06-12 20:35:34 +0100 |
commit | 2974b6f4c8224ab1097e9386d6b3a0d570f95531 (patch) | |
tree | 5e096917408ec3b8099685c0db35fa372914d01e /lib | |
parent | e2413ad5a8b6a80e5552306518fdf16e68b6c6d7 (diff) | |
download | nixpkgs-2974b6f4c8224ab1097e9386d6b3a0d570f95531.tar nixpkgs-2974b6f4c8224ab1097e9386d6b3a0d570f95531.tar.gz nixpkgs-2974b6f4c8224ab1097e9386d6b3a0d570f95531.tar.bz2 nixpkgs-2974b6f4c8224ab1097e9386d6b3a0d570f95531.tar.lz nixpkgs-2974b6f4c8224ab1097e9386d6b3a0d570f95531.tar.xz nixpkgs-2974b6f4c8224ab1097e9386d6b3a0d570f95531.tar.zst nixpkgs-2974b6f4c8224ab1097e9386d6b3a0d570f95531.zip |
Use shell packages to select the user's shell
The string type is still available for backward-compatiblity.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/types.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix index 91b39f3a9cf..83f624e6b44 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -100,6 +100,10 @@ rec { in if isDerivation res then res else toDerivation res; }; + shellPackage = package // { + check = x: (package.check x) && (hasAttr "shellPath" x); + }; + path = mkOptionType { name = "path"; # Hacky: there is no ‘isPath’ primop. |