add dietlibc-wrapper
svn path=/nixpkgs/trunk/; revision=3730
This commit is contained in:
parent
981a1f0f6e
commit
1de7c2e4ba
2 changed files with 25 additions and 0 deletions
14
pkgs/os-specific/linux/dietlibc-wrapper/builder.sh
Normal file
14
pkgs/os-specific/linux/dietlibc-wrapper/builder.sh
Normal 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
|
11
pkgs/os-specific/linux/dietlibc-wrapper/default.nix
Normal file
11
pkgs/os-specific/linux/dietlibc-wrapper/default.nix
Normal 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;
|
||||
|
||||
}
|
Loading…
Reference in a new issue