Added possibility to change klibc version

svn path=/nixpkgs/trunk/; revision=12563
This commit is contained in:
Michael Raskin 2008-08-09 08:40:37 +00:00
parent abe260b6c5
commit 83509605b3
2 changed files with 10 additions and 6 deletions

View file

@ -1,13 +1,17 @@
{stdenv, fetchurl, perl, bison, mktemp, kernel}:
{stdenv, fetchurl, perl, bison, mktemp, kernel
, version ? "1.5"
, sha256 ? "1izhf8kscjymsvsvhcqw9awnmp94vwv70zdj09srg9bkpjj0n017"
, subdir ? ""
}:
assert stdenv.isLinux;
stdenv.mkDerivation {
name = "klibc-1.5";
name = "klibc-${version}";
builder = ./builder.sh;
src = fetchurl {
url = mirror://kernel/linux/libs/klibc/klibc-1.5.tar.bz2;
sha256 = "1izhf8kscjymsvsvhcqw9awnmp94vwv70zdj09srg9bkpjj0n017";
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";
};

View file

@ -5210,9 +5210,9 @@ let pkgs = rec {
# Actually, klibc builds fine with the static kernelHeaders, but
# splashutils expects a klibc with patched headers...
klibc = import ../os-specific/linux/klibc {
klibc = composedArgsAndFun (import ../os-specific/linux/klibc) {
inherit fetchurl stdenv perl bison mktemp kernel;
};
} null;
klibcShrunk = import ../os-specific/linux/klibc/shrunk.nix {
inherit stdenv klibc;