1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

add dietlibc-wrapper

svn path=/nixpkgs/trunk/; revision=3730
This commit is contained in:
Armijn Hemel 2005-08-28 00:18:26 +00:00
parent 981a1f0f6e
commit 1de7c2e4ba
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,14 @@
. $stdenv/setup
#export NIX_GLIBC_FLAGS_SET=1
ensureDir "$(dirname $out/bin/diet)"
cat > $out/bin/gcc << END
#! $SHELL -e
exec $dietlibc/bin/diet $gcc/bin/gcc "\$@"
END
chmod +x $out/bin/gcc
ln -s $out/bin/gcc $out/bin/cc

View file

@ -0,0 +1,11 @@
{stdenv, dietlibc, gcc, langC ? true, langCC ? true, langF77 ? false}:
stdenv.mkDerivation {
name = dietlibc.name;
builder = ./builder.sh;
inherit dietlibc gcc langC langCC langF77;
#NIX_GLIBC_FLAGS_SET=1;
}