Use shell packages to select the user's shell

The string type is still available for backward-compatiblity.
This commit is contained in:
zimbatm
2016-06-12 20:35:34 +01:00
parent e2413ad5a8
commit 2974b6f4c8
6 changed files with 43 additions and 20 deletions
+4
View File
@@ -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.