Adding a new mkDerivation flag for the cross stdenv, selfNativeBuildInput =

true/false, which tells whether the derivation needs itself as
buildNativeInput.
For example, in order to build cross ncurses, we need the a native build
ncurses.
(As libtool does not work in stdenv, I have not tested this change, to check
whether finally ncurses cross-build)


svn path=/nixpkgs/branches/stdenv-updates/; revision=18489
This commit is contained in:
Lluís Batlle i Rossell
2009-11-20 16:38:01 +00:00
parent 4497215410
commit 28d9e73d34
2 changed files with 6 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
--with-shared --includedir=''${out}/include --without-debug
${if unicode then "--enable-widec" else ""}
'';
selfNativeBuildInput = true;
preBuild = ''sed -e "s@\([[:space:]]\)sh @\1''${SHELL} @" -i */Makefile Makefile'';