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:
@@ -8,9 +8,11 @@ stdenv.mkDerivation {
|
||||
sha256 = "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml ocamlbuild findlib opaline ];
|
||||
nativeBuildInputs = [ ocaml ocamlbuild findlib opaline ];
|
||||
buildInputs = [ findlib ];
|
||||
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
||||
installPhase = "opaline -libdir $OCAMLFIND_DESTDIR";
|
||||
configurePlatforms = [];
|
||||
|
||||
meta = {
|
||||
description = "Compatibility library for OCaml’s Uchar module";
|
||||
|
||||
Reference in New Issue
Block a user