3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages: fix some packages for cross-compilation

This commit is contained in:
Antonio Nuno Monteiro 2021-11-07 22:10:02 -08:00
parent 363f590140
commit efd2a1bb8d
3 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
sha256 = "06yyds2vcwlfr2nd3gvyrazlijjcrd1abnvkfpkaadgwdw3qam1i";
};
buildInputs = [ ocaml findlib ];
nativeBuildInputs = [ ocaml findlib ];
# don't run tests in buildPhase
# don't overwrite test binary

View file

@ -17,8 +17,8 @@ buildDunePackage rec {
sha256 = "0cq2qy23sa1a5zk6nja3c652mp29i84yfrkcwks6i8sdqwli36jy";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ cppo dune-configurator ]
nativeBuildInputs = [ pkg-config cppo dune-configurator ];
buildInputs = [ ]
++ optional (!versionAtLeast ocaml.version "4.08") ocaml-syntax-shims
++ optional (!versionAtLeast ocaml.version "4.07") ncurses;
propagatedBuildInputs = [ libev mmap ocplib-endian seq result ];

View file

@ -11,7 +11,7 @@ buildDunePackage rec {
useDune2 = true;
buildInputs = [ cppo ];
nativeBuildInputs = [ cppo ];
meta = with lib; {
description = "Optimised functions to read and write int16/32/64";