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