blob: 1ddd60805be37098de4cd9b50264170dce98ff1b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "e2fsprogs-1.40.8";
src = fetchurl {
url = mirror://sourceforge/e2fsprogs/e2fsprogs-1.40.8.tar.gz;
sha256 = "1bgfi1b7zl60lbc8b0bcqv9rk886jcwwq091n08in4msnpw71prq";
};
configureFlags =
if stdenv ? isDietLibC
then ""
else "--enable-elf-shlibs";
preInstall = "installFlagsArray=('LN=ln -s')";
postInstall = "make install-libs";
NIX_CFLAGS_COMPILE =
if stdenv ? isDietLibC then
"-UHAVE_SYS_PRCTL_H " +
(if stdenv.system == "x86_64-linux" then "-DHAVE_LSEEK64_PROTOTYPE=1 -Dstat64=stat" else "")
else "";
}
|