about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/os-specific/linux/shadow/builder.sh3
-rw-r--r--pkgs/os-specific/linux/shadow/default.nix12
-rw-r--r--pkgs/system/all-packages-generic.nix4
3 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/shadow/builder.sh b/pkgs/os-specific/linux/shadow/builder.sh
new file mode 100644
index 000000000000..28ea67d098fa
--- /dev/null
+++ b/pkgs/os-specific/linux/shadow/builder.sh
@@ -0,0 +1,3 @@
+. $stdenv/setup
+                                                                                
+genericBuild
diff --git a/pkgs/os-specific/linux/shadow/default.nix b/pkgs/os-specific/linux/shadow/default.nix
new file mode 100644
index 000000000000..c9f17f577ac1
--- /dev/null
+++ b/pkgs/os-specific/linux/shadow/default.nix
@@ -0,0 +1,12 @@
+{stdenv, fetchurl}:
+   
+stdenv.mkDerivation {
+  name = "shadow-4.0.4.1";
+   
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = ftp://ftp.pld.org.pl/software/shadow/shadow-4.0.4.1.tar.bz2;
+    md5 = "3a3d17d3d7c630b602baf66ae7434c61";
+  };
+   
+}
diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix
index 9ecc2c515cbb..020ae8b106cb 100644
--- a/pkgs/system/all-packages-generic.nix
+++ b/pkgs/system/all-packages-generic.nix
@@ -672,6 +672,10 @@ rec {
     inherit fetchurl stdenv;
   };
 
+  shadowutils = (import ../os-specific/linux/shadow) {
+    inherit fetchurl stdenv;
+  };
+
   iputils = (import ../os-specific/linux/iputils) {
     inherit fetchurl stdenv kernelHeaders;
     glibc = stdenv.gcc.glibc;