vala: fix cross
This commit is contained in:
parent
ce62ff7bdf
commit
8132fb355a
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, lib, fetchurl, fetchpatch, pkg-config, flex, bison, libxslt, autoconf, autoreconfHook
|
||||
, gnome, graphviz, glib, libiconv, libintl, libtool, expat, substituteAll
|
||||
, gnome, graphviz, glib, libiconv, libintl, libtool, expat, substituteAll, vala
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -49,7 +49,9 @@ let
|
|||
# so that it can be used to regenerate documentation.
|
||||
patches = lib.optionals disableGraphviz [ graphvizPatch ./gvc-compat.patch ];
|
||||
configureFlags = lib.optional disableGraphviz "--disable-graphviz";
|
||||
preBuild = lib.optionalString disableGraphviz "buildFlagsArray+=(\"VALAC=$(pwd)/compiler/valac\")";
|
||||
# when cross-compiling ./compiler/valac is valac for host
|
||||
# so add the build vala in nativeBuildInputs
|
||||
preBuild = lib.optionalString (disableGraphviz && (stdenv.buildPlatform == stdenv.hostPlatform)) "buildFlagsArray+=(\"VALAC=$(pwd)/compiler/valac\")";
|
||||
|
||||
outputs = [ "out" "devdoc" ];
|
||||
|
||||
|
@ -57,6 +59,7 @@ let
|
|||
pkg-config flex bison libxslt
|
||||
] ++ lib.optional (stdenv.isDarwin && (lib.versionAtLeast version "0.38")) expat
|
||||
++ lib.optional disableGraphviz autoreconfHook # if we changed our ./configure script, need to reconfigure
|
||||
++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ vala ]
|
||||
++ extraNativeBuildInputs;
|
||||
|
||||
buildInputs = [
|
||||
|
|
Loading…
Reference in a new issue