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:
parent
981a1f0f6e
commit
1de7c2e4ba
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