2008-03-06 17:10:01 +01:00
|
|
|
{stdenv, fetchurl}:
|
2004-02-16 15:31:52 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2008-05-08 12:56:59 +02:00
|
|
|
name = "e2fsprogs-1.40.8";
|
2004-02-16 15:31:52 +01:00
|
|
|
src = fetchurl {
|
2008-05-08 12:56:59 +02:00
|
|
|
url = mirror://sourceforge/e2fsprogs/e2fsprogs-1.40.8.tar.gz;
|
|
|
|
sha256 = "018czxrdz7f2nlcx4n9rb4cmjia7n038lhgnpamqdclxf0imfxjr";
|
2004-02-16 15:31:52 +01:00
|
|
|
};
|
2006-11-24 12:36:57 +01:00
|
|
|
configureFlags =
|
|
|
|
if stdenv ? isDietLibC
|
|
|
|
then ""
|
2008-03-06 13:08:19 +01:00
|
|
|
else "--enable-elf-shlibs";
|
2006-11-24 12:36:57 +01:00
|
|
|
preInstall = "installFlagsArray=('LN=ln -s')";
|
2008-03-07 06:51:59 +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
|
|
|
}
|