mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
* Fixed stdenv-native.
svn path=/nixpkgs/trunk/; revision=386
This commit is contained in:
parent
ff7acae84b
commit
443b81595a
8
pkgs/stdenv-native/setup.sh
Normal file
8
pkgs/stdenv-native/setup.sh
Normal file
@ -0,0 +1,8 @@
|
||||
export PATH=/usr/local/bin:/usr/bin:/bin
|
||||
export SHELL=/bin/sh
|
||||
|
||||
. @BASEENV@/setup
|
||||
|
||||
export NIX_CC=/usr/bin/gcc
|
||||
export NIX_CXX=/usr/bin/g++
|
||||
export NIX_LD=/usr/bin/ld
|
@ -1,26 +1,9 @@
|
||||
#! /bin/sh
|
||||
|
||||
export PATH=/bin:/usr/bin
|
||||
export PATH=/usr/local/bin:/usr/bin:/bin
|
||||
|
||||
mkdir $out || exit 1
|
||||
mkdir $out/bin || exit 1
|
||||
|
||||
echo "export PATH=$out/bin:/bin:/usr/bin" >> $out/setup || exit 1
|
||||
|
||||
gcc=/usr/bin/gcc
|
||||
|
||||
sed \
|
||||
-e s^@GCC\@^$gcc^g \
|
||||
< $gccwrapper > $out/bin/gcc || exit 1
|
||||
chmod +x $out/bin/gcc || exit 1
|
||||
|
||||
ln -s gcc $out/bin/cc
|
||||
|
||||
gplusplus=/usr/bin/g++
|
||||
|
||||
sed \
|
||||
-e s^@GCC\@^$gplusplus^g \
|
||||
< $gccwrapper > $out/bin/g++ || exit 1
|
||||
chmod +x $out/bin/g++ || exit 1
|
||||
|
||||
ln -s g++ $out/bin/c++
|
||||
-e s^@BASEENV\@^$baseenv^g \
|
||||
< $setup > $out/setup || exit 1
|
||||
|
@ -2,6 +2,7 @@ Package(
|
||||
[ ("name", "stdenv-native")
|
||||
, ("build", Relative("stdenv-native/stdenv-build.sh"))
|
||||
|
||||
, ("gccwrapper", Relative("baseenv/gcc-wrapper.sh"))
|
||||
, ("setup", Relative("stdenv-native/setup.sh"))
|
||||
, ("baseenv", IncludeFix("baseenv/baseenv.fix"))
|
||||
]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user