1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/pkgs/os-specific/linux/lvm2/default.nix
Eelco Dolstra 64c003f97f * Partially reverted r12554: don't build devicemapper and lvm2 with
makeStaticBinaries, because it stubbornly tries to build dynamic
  libraries as well.

svn path=/nixpkgs/trunk/; revision=12633
2008-08-15 14:14:55 +00:00

22 lines
584 B
Nix

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