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