mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
* Stdenv-native uses the native build tools of the system.
svn path=/nixpkgs/trunk/; revision=242
This commit is contained in:
parent
5f248af2a0
commit
244d0b4181
26
pkgs/stdenv-native/stdenv-build.sh
Executable file
26
pkgs/stdenv-native/stdenv-build.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#! /bin/sh
|
||||
|
||||
export PATH=/bin:/usr/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++
|
7
pkgs/stdenv-native/stdenv.fix
Normal file
7
pkgs/stdenv-native/stdenv.fix
Normal file
@ -0,0 +1,7 @@
|
||||
Package(
|
||||
[ ("name", "stdenv-native")
|
||||
, ("build", Relative("stdenv-native/stdenv-build.sh"))
|
||||
|
||||
, ("gccwrapper", Relative("stdenv-linux/gcc-wrapper.sh"))
|
||||
]
|
||||
)
|
1
pkgs/stdenv/stdenv.fix
Normal file
1
pkgs/stdenv/stdenv.fix
Normal file
@ -0,0 +1 @@
|
||||
IncludeFix("stdenv-native/stdenv.fix")
|
Loading…
Reference in New Issue
Block a user