diff --git a/pkgs/os-specific/linux/shadow/default.nix b/pkgs/os-specific/linux/shadow/default.nix index 93e8c4d0fbbc..b44e2d99c89d 100644 --- a/pkgs/os-specific/linux/shadow/default.nix +++ b/pkgs/os-specific/linux/shadow/default.nix @@ -1,14 +1,17 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl, pam }: -stdenv.mkDerivation { - name = "shadow-4.0.16"; +stdenv.mkDerivation rec { + name = "shadow-4.1.4.2"; src = fetchurl { - url = http://losser.labs.cs.uu.nl/~armijn/.nix/shadow-4.0.16.tar.bz2; - md5 = "1d91f7479143d1d705b94180c0d4874b"; + url = "ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/${name}.tar.bz2"; + sha256 = "1449ny7pdnwkavg92wvibapnkgdq5pas38nvl1m5xa37g5m7z64p"; }; - - configureFlags = "--with-selinux=no"; - postInstall = "rm $out/bin/groups"; # coreutils provides `groups' + buildInputs = [ pam ]; + + meta = { + homepage = http://pkg-shadow.alioth.debian.org/; + description = "Suite containing authentication-related tools such as passwd and su"; + }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9e98537ad46f..443f20d489fc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6750,8 +6750,8 @@ let inherit fetchurl stdenv; }; - shadowutils = import ../os-specific/linux/shadow { - inherit fetchurl stdenv; + shadow = import ../os-specific/linux/shadow { + inherit fetchurl stdenv pam; }; splashutils = import ../os-specific/linux/splashutils/default.nix {