2008-08-15 16:14:55 +02:00
|
|
|
{stdenv, fetchurl, devicemapper, enableStatic ? true}:
|
|
|
|
|
|
|
|
assert enableStatic -> devicemapper.enableStatic;
|
2006-12-24 00:16:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-08-15 16:14:55 +02:00
|
|
|
name = "lvm2-2.02.39";
|
|
|
|
|
2006-12-24 00:16:04 +01:00
|
|
|
src = fetchurl {
|
2008-08-15 16:14:55 +02:00
|
|
|
url = ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.39.tgz;
|
|
|
|
sha256 = "18nfy7lj9fjjqjjd9dmb4v8away7cpi51ss1k8gd0yrh77dbsyyh";
|
2006-12-24 00:16:04 +01:00
|
|
|
};
|
2008-08-15 16:14:55 +02:00
|
|
|
|
2006-12-24 00:16:04 +01:00
|
|
|
buildInputs = [devicemapper];
|
2008-08-15 16:14:55 +02:00
|
|
|
|
|
|
|
inherit enableStatic;
|
|
|
|
|
|
|
|
configureFlags = "--disable-readline ${if enableStatic then "--enable-static_link" else ""}";
|
|
|
|
|
2006-12-24 00:16:04 +01:00
|
|
|
# To prevent make install from failing.
|
|
|
|
preInstall = "installFlags=\"OWNER= GROUP= confdir=$out/etc\"";
|
|
|
|
}
|