nixpkgs/pkgs/os-specific/linux/klibc/default.nix
Michael Raskin 83509605b3 Added possibility to change klibc version
svn path=/nixpkgs/trunk/; revision=12563
2008-08-09 08:40:37 +00:00

22 lines
614 B
Nix

{stdenv, fetchurl, perl, bison, mktemp, kernel
, version ? "1.5"
, sha256 ? "1izhf8kscjymsvsvhcqw9awnmp94vwv70zdj09srg9bkpjj0n017"
, subdir ? ""
}:
assert stdenv.isLinux;
stdenv.mkDerivation {
name = "klibc-${version}";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://kernel/linux/libs/klibc/${subdir}klibc-${version}.tar.bz2";
inherit sha256;
# url = mirror://kernel/linux/libs/klibc/Testing/klibc-1.5.14.tar.bz2;
# sha256 = "1cmrqpgamnv2ns7dlxjm61zc88dxm4ff0aya413ij1lmhp2h2sfc";
};
inherit kernel;
buildInputs = [perl bison mktemp];
#patches = [./install.patch];
}