From 38f6f3688958ad8379cc110834c5423bd3436fcc Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Mon, 30 Aug 2004 11:44:51 +0000 Subject: [PATCH] add shadowutils, with the following limitations: - tools can only be run as root, because there's no store support for UNIX permissions svn path=/nixpkgs/trunk/; revision=1361 --- pkgs/os-specific/linux/shadow/builder.sh | 3 +++ pkgs/os-specific/linux/shadow/default.nix | 12 ++++++++++++ pkgs/system/all-packages-generic.nix | 4 ++++ 3 files changed, 19 insertions(+) create mode 100644 pkgs/os-specific/linux/shadow/builder.sh create mode 100644 pkgs/os-specific/linux/shadow/default.nix 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;