2008-03-06 17:10:01 +01:00
|
|
|
{stdenv, fetchurl}:
|
2004-02-16 15:31:52 +01:00
|
|
|
|
2009-05-20 19:13:51 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "e2fsprogs-1.41.5";
|
2009-01-06 10:16:41 +01:00
|
|
|
|
2004-02-16 15:31:52 +01:00
|
|
|
src = fetchurl {
|
2009-05-20 19:13:51 +02:00
|
|
|
url = "mirror://sourceforge/e2fsprogs/${name}.tar.gz";
|
|
|
|
sha256 = "1611lcfp5vcng7g9sacyxhg1dklxpn2p5m43mvfl0dwa0phx1mxk";
|
2004-02-16 15:31:52 +01:00
|
|
|
};
|
2009-01-06 10:16:41 +01:00
|
|
|
|
2006-11-24 12:36:57 +01:00
|
|
|
configureFlags =
|
2009-06-21 20:37:54 +02:00
|
|
|
(if stdenv ? isDietLibC
|
2009-01-07 00:22:29 +01:00
|
|
|
then "--with-diet-libc"
|
2009-06-21 20:37:54 +02:00
|
|
|
else (if stdenv.system == "i686-darwin" then " --enable-bsd-shlibs" else "--enable-elf-shlibs" ) ) ;
|
2009-01-07 00:22:29 +01:00
|
|
|
|
|
|
|
preBuild = if stdenv ? isDietLibC then ''
|
|
|
|
sed -e 's/-lpthread//' -i Makefile */Makefile */*/Makefile
|
|
|
|
'' else "";
|
2009-01-06 10:16:41 +01:00
|
|
|
|
2006-11-24 12:36:57 +01:00
|
|
|
preInstall = "installFlagsArray=('LN=ln -s')";
|
2009-01-06 10:16:41 +01:00
|
|
|
|
2008-03-07 06:51:59 +01:00
|
|
|
postInstall = "make install-libs";
|
2009-01-06 10:16:41 +01:00
|
|
|
|
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 "")
|
2009-01-07 00:22:29 +01:00
|
|
|
+ " -lcompat -lpthread "
|
2007-01-23 14:52:34 +01:00
|
|
|
else "";
|
2009-01-06 10:16:41 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://e2fsprogs.sourceforge.net/;
|
|
|
|
description = "Tools for creating and checking ext2/ext3/ext4 filesystems";
|
|
|
|
};
|
2004-02-16 15:31:52 +01:00
|
|
|
}
|