2015-06-01 19:57:15 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libuuid }:
|
2009-08-11 21:57:29 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-02 10:49:55 +01:00
|
|
|
name = "e2fsprogs-1.42.13";
|
2009-09-25 21:53:21 +01:00
|
|
|
|
2009-08-11 21:57:29 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/e2fsprogs/${name}.tar.gz";
|
2015-06-02 10:49:55 +01:00
|
|
|
sha256 = "1m72lk90b5i3h9qnmss6aygrzyn8x2avy3hyaq2fb0jglkrkz6ar";
|
2009-08-11 21:57:29 +01:00
|
|
|
};
|
|
|
|
|
2015-06-01 19:57:15 +01:00
|
|
|
buildInputs = [ pkgconfig libuuid ];
|
|
|
|
|
|
|
|
crossAttrs = {
|
|
|
|
preConfigure = ''
|
|
|
|
export CC=$crossConfig-gcc
|
|
|
|
'';
|
|
|
|
};
|
2010-03-04 14:44:31 +00:00
|
|
|
|
2015-06-01 19:57:15 +01:00
|
|
|
# libuuid, libblkid, uuidd and fsck are in util-linux-ng (the "libuuid" dependency).
|
|
|
|
configureFlags = "--enable-elf-shlibs --disable-libuuid --disable-libblkid --disable-uuidd --disable-fsck --enable-symlink-install";
|
2009-08-11 21:57:29 +01:00
|
|
|
|
2013-05-11 17:09:05 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-06-01 19:57:15 +01:00
|
|
|
preInstall = "installFlagsArray=('LN=ln -s')";
|
2012-09-05 00:04:14 +01:00
|
|
|
|
2015-06-01 19:57:15 +01:00
|
|
|
postInstall = "make install-libs";
|
2012-09-05 00:04:14 +01:00
|
|
|
|
2015-06-01 19:57:15 +01:00
|
|
|
meta = {
|
2009-08-11 21:57:29 +01:00
|
|
|
homepage = http://e2fsprogs.sourceforge.net/;
|
|
|
|
description = "Tools for creating and checking ext2/ext3/ext4 filesystems";
|
2015-06-01 19:57:15 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2009-08-11 21:57:29 +01:00
|
|
|
};
|
|
|
|
}
|