nixpkgs-suyu/pkgs/os-specific/linux/e2fsprogs/default.nix
Armijn Hemel 0042a38689 1.4.8 -> 1.4.11
svn path=/nixpkgs/trunk/; revision=12151
2008-06-18 19:37:55 +00:00

20 lines
608 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "e2fsprogs-1.40.11";
src = fetchurl {
url = mirror://sourceforge/e2fsprogs/e2fsprogs-1.40.11.tar.gz;
sha256 = "0yw97irzwrra09wijjn8ig5j2fkyqwxl3hqyspsm3cmk2cshrsry";
};
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 "";
}