2008-03-06 16:10:01 +00:00
|
|
|
{stdenv, fetchurl}:
|
2004-02-16 14:31:52 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-01-06 09:16:41 +00:00
|
|
|
name = "e2fsprogs-1.41.3";
|
|
|
|
|
2004-02-16 14:31:52 +00:00
|
|
|
src = fetchurl {
|
2009-01-06 09:16:41 +00:00
|
|
|
url = mirror://sourceforge/e2fsprogs/e2fsprogs-1.41.3.tar.gz;
|
|
|
|
sha256 = "0yldax5z1d1gfxpvzmr8y2z5zg5xhbi9pjjy4yw0q28dd2pfsxyf";
|
2004-02-16 14:31:52 +00:00
|
|
|
};
|
2009-01-06 09:16:41 +00:00
|
|
|
|
2006-11-24 11:36:57 +00:00
|
|
|
configureFlags =
|
|
|
|
if stdenv ? isDietLibC
|
2009-01-06 23:22:29 +00:00
|
|
|
then "--with-diet-libc"
|
2008-03-06 12:08:19 +00:00
|
|
|
else "--enable-elf-shlibs";
|
2009-01-06 23:22:29 +00:00
|
|
|
|
|
|
|
preBuild = if stdenv ? isDietLibC then ''
|
|
|
|
sed -e 's/-lpthread//' -i Makefile */Makefile */*/Makefile
|
|
|
|
'' else "";
|
2009-01-06 09:16:41 +00:00
|
|
|
|
2006-11-24 11:36:57 +00:00
|
|
|
preInstall = "installFlagsArray=('LN=ln -s')";
|
2009-01-06 09:16:41 +00:00
|
|
|
|
2008-03-07 05:51:59 +00:00
|
|
|
postInstall = "make install-libs";
|
2009-01-06 09:16:41 +00:00
|
|
|
|
2006-11-24 11:36:57 +00:00
|
|
|
NIX_CFLAGS_COMPILE =
|
2007-01-23 13:52:34 +00:00
|
|
|
if stdenv ? isDietLibC then
|
|
|
|
"-UHAVE_SYS_PRCTL_H " +
|
|
|
|
(if stdenv.system == "x86_64-linux" then "-DHAVE_LSEEK64_PROTOTYPE=1 -Dstat64=stat" else "")
|
2009-01-06 23:22:29 +00:00
|
|
|
+ " -lcompat -lpthread "
|
2007-01-23 13:52:34 +00:00
|
|
|
else "";
|
2009-01-06 09:16:41 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://e2fsprogs.sourceforge.net/;
|
|
|
|
description = "Tools for creating and checking ext2/ext3/ext4 filesystems";
|
|
|
|
};
|
2004-02-16 14:31:52 +00:00
|
|
|
}
|