From 9d76685ded20539d519deb1183836472dad285b0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 23 Dec 2006 23:16:04 +0000 Subject: [PATCH] * LVM2 and the device mapper. svn path=/nixpkgs/trunk/; revision=7475 --- pkgs/os-specific/linux/device-mapper/default.nix | 11 +++++++++++ pkgs/os-specific/linux/lvm2/default.nix | 12 ++++++++++++ pkgs/top-level/all-packages.nix | 8 ++++++++ 3 files changed, 31 insertions(+) create mode 100644 pkgs/os-specific/linux/device-mapper/default.nix create mode 100644 pkgs/os-specific/linux/lvm2/default.nix diff --git a/pkgs/os-specific/linux/device-mapper/default.nix b/pkgs/os-specific/linux/device-mapper/default.nix new file mode 100644 index 000000000000..f69a12f33885 --- /dev/null +++ b/pkgs/os-specific/linux/device-mapper/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "device-mapper-1.02.13"; + src = fetchurl { + url = ftp://sources.redhat.com/pub/dm/device-mapper.1.02.13.tgz; + md5 = "9ab13083a939ceb26ce5da6b625aeb3c"; + }; + # To prevent make install from failing. + installFlags = "OWNER= GROUP="; +} diff --git a/pkgs/os-specific/linux/lvm2/default.nix b/pkgs/os-specific/linux/lvm2/default.nix new file mode 100644 index 000000000000..c09e8339c45e --- /dev/null +++ b/pkgs/os-specific/linux/lvm2/default.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, devicemapper}: + +stdenv.mkDerivation { + name = "lvm2-2.02.17"; + src = fetchurl { + url = ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.17.tgz; + md5 = "a1bebdabb0dace2b9dd98579625ce53c"; + }; + buildInputs = [devicemapper]; + # To prevent make install from failing. + preInstall = "installFlags=\"OWNER= GROUP= confdir=$out/etc\""; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a41ec8734d34..addaf1ac41bd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2093,6 +2093,10 @@ rec { # cross = "sparc-linux"; #}; + devicemapper = import ../os-specific/linux/device-mapper { + inherit fetchurl stdenv; + }; + dietlibc = import ../os-specific/linux/dietlibc { inherit fetchurl glibc; # Dietlibc 0.30 doesn't compile on PPC with GCC 4.1, bus GCC 3.4 works. @@ -2211,6 +2215,10 @@ rec { inherit fetchurl stdenv; }; + lvm2 = import ../os-specific/linux/lvm2 { + inherit fetchurl stdenv devicemapper; + }; + mingetty = import ../os-specific/linux/mingetty { inherit fetchurl stdenv; };