merging builder.sh into klibc expression
svn path=/nixpkgs/trunk/; revision=13172
This commit is contained in:
parent
57bad22121
commit
914e93bb01
@ -2,13 +2,22 @@
|
||||
, version ? "1.5"
|
||||
, sha256 ? "1izhf8kscjymsvsvhcqw9awnmp94vwv70zdj09srg9bkpjj0n017"
|
||||
, subdir ? ""
|
||||
, addPreBuild ? ""
|
||||
}:
|
||||
|
||||
assert stdenv.isLinux;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "klibc-${version}";
|
||||
builder = ./builder.sh;
|
||||
#builder = ./builder.sh;
|
||||
makeFlags = ["V=1" "prefix=$out" "SHLIBDIR=$out/lib"];
|
||||
preBuild = ''
|
||||
makeFlags=$(eval "echo $makeFlags")
|
||||
|
||||
mkdir -p linux/include
|
||||
cp -prd $kernel/lib/modules/*/build/include/* linux/include/
|
||||
chmod -R u+w linux/include/
|
||||
'' + addPreBuild;
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/libs/klibc/${subdir}klibc-${version}.tar.bz2";
|
||||
inherit sha256;
|
||||
|
Loading…
Reference in New Issue
Block a user