mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
82e678362f
svn path=/nixpkgs/trunk/; revision=4335
15 lines
232 B
Bash
15 lines
232 B
Bash
source $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
|