mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
607b0d3e80
find . -name "*.nix" | while read fn; do sed 's^http://[a-z]*.dl.sourceforge.net/sourceforge/^mirror://sourceforge/^g' < $fn > $fn.new; mv $fn.new $fn; done svn path=/nixpkgs/trunk/; revision=9198
23 lines
681 B
Nix
23 lines
681 B
Nix
{stdenv, fetchurl, gettext}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "e2fsprogs-1.39";
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/e2fsprogs/e2fsprogs-1.39.tar.gz;
|
|
md5 = "06f7806782e357797fad1d34b7ced0c6";
|
|
};
|
|
configureFlags =
|
|
if stdenv ? isDietLibC
|
|
then ""
|
|
else "--enable-dynamic-e2fsck --enable-elf-shlibs";
|
|
buildInputs = [gettext];
|
|
patches = [./e2fsprogs-1.39_etc.patch];
|
|
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 "";
|
|
}
|