nixpkgs/pkgs/development/libraries/glibc-nptl/default.nix
Michael Raskin e6c5500d42 Changed package name to glibc-2.5-nptl ...
svn path=/nixpkgs/trunk/; revision=9160
2007-08-18 16:23:11 +00:00

28 lines
758 B
Nix

{ stdenv, fetchurl, kernelHeaders
, installLocales ? true
, profilingLibraries ? false
}:
stdenv.mkDerivation {
name = "glibc-2.5-nptl";
builder = ./builder.sh;
src = fetchurl {
url = http://ftp.gnu.org/gnu/glibc/glibc-2.5.tar.bz2;
md5 = "1fb29764a6a650a4d5b409dda227ac9f";
};
patches = [ ./glibc-pwd.patch ./glibc-getcwd-param-MAX.patch ];
inherit kernelHeaders installLocales;
inherit (stdenv) is64bit;
# `--with-tls --without-__thread' enables support for TLS but causes
# it not to be used. Required if we don't want to barf on 2.4
# kernels. Or something.
configureFlags="--enable-add-ons
--with-headers=${kernelHeaders}/include
${if profilingLibraries then "--enable-profile" else "--disable-profile"}";
}