ocaml-modules: replace buildInputs with nativeBuildInputs where appropriate
The default has been to use buildInputs for build dependencies. This doesn't work when cross-compiling.
This commit is contained in:
committed by
Alexander Bantyev
parent
173bf3473c
commit
4550405ac9
@@ -7,7 +7,8 @@ stdenv.mkDerivation {
|
||||
|
||||
inherit (js_of_ocaml-compiler) version src installPhase meta;
|
||||
|
||||
buildInputs = [ ocaml findlib dune ocaml-migrate-parsetree ppx_tools_versioned ];
|
||||
buildInputs = [ findlib ocaml-migrate-parsetree ppx_tools_versioned ];
|
||||
nativeBuildInputs = [ ocaml findlib dune ];
|
||||
|
||||
postPatch = "patchShebangs lib/generate_stubs.sh";
|
||||
|
||||
|
||||
@@ -13,8 +13,10 @@ buildDunePackage rec {
|
||||
sha256 = "0c537say0f3197zn8d83nrihabrxyn28xc6d7c9c3l0vvrv6qvfj";
|
||||
};
|
||||
|
||||
buildInputs = [ cmdliner cppo ];
|
||||
nativeBuildInputs = [ ocaml findlib dune cppo ];
|
||||
buildInputs = [ cmdliner ];
|
||||
|
||||
configurePlatforms = [];
|
||||
propagatedBuildInputs = [ yojson ];
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user