2005-08-28 01:30:53 +01:00
|
|
|
{stdenv, fetchurl, gettext}:
|
2004-02-16 14:31:52 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2006-06-24 16:58:25 +01:00
|
|
|
name = "e2fsprogs-1.39";
|
2004-02-16 14:31:52 +00:00
|
|
|
src = fetchurl {
|
2006-10-12 15:53:45 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/e2fsprogs-1.39.tar.gz;
|
2006-06-24 16:58:25 +01:00
|
|
|
md5 = "06f7806782e357797fad1d34b7ced0c6";
|
2004-02-16 14:31:52 +00:00
|
|
|
};
|
2006-11-24 11:36:57 +00:00
|
|
|
configureFlags =
|
|
|
|
if stdenv ? isDietLibC
|
|
|
|
then ""
|
|
|
|
else "--enable-dynamic-e2fsck --enable-elf-shlibs";
|
2005-03-10 16:03:19 +00:00
|
|
|
buildInputs = [gettext];
|
2006-06-24 16:58:25 +01:00
|
|
|
patches = [./e2fsprogs-1.39_etc.patch];
|
2006-11-24 11:36:57 +00:00
|
|
|
preInstall = "installFlagsArray=('LN=ln -s')";
|
2007-01-06 22:04:46 +00:00
|
|
|
postInstall = "make install-libs";
|
2006-11-24 11:36:57 +00:00
|
|
|
NIX_CFLAGS_COMPILE =
|
2007-01-22 22:10:14 +00:00
|
|
|
if stdenv ? isDietLibC then "-UHAVE_SYS_PRCTL_H -DHAVE_LSEEK64_PROTOTYPE=1 -Dstat64=stat" else "";
|
2004-02-16 14:31:52 +00:00
|
|
|
}
|