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:
@@ -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'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user