Merge pull request #16703 from zimbatm/nologin-error

Nologin error
This commit is contained in:
zimbatm
2016-07-07 22:58:53 +01:00
committed by GitHub
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -12,6 +12,8 @@ rec {
toShellPath = shell: toShellPath = shell:
if types.shellPackage.check shell then if types.shellPackage.check shell then
"/run/current-system/sw${shell.shellPath}" "/run/current-system/sw${shell.shellPath}"
else if types.package.check shell then
throw "${shell} is not a shell package"
else else
shell; shell;
} }
+4 -3
View File
@@ -53,8 +53,9 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = http://pkg-shadow.alioth.debian.org/; homepage = http://pkg-shadow.alioth.debian.org/;
description = "Suite containing authentication-related tools such as passwd and su"; description = "Suite containing authentication-related tools such as passwd and su";
passthru = { };
shellPath = "/bin/nologin";
}; passthru = {
shellPath = "/bin/nologin";
}; };
} }