mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
Merge pull request #145033 from anmonteiro/anmonteiro/ocaml-cross-fiexs
ocamlPackages: fix some packages for cross-compilation
This commit is contained in:
commit
06449fce5b
@ -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
|
||||
|
@ -17,9 +17,8 @@ buildDunePackage rec {
|
||||
sha256 = "0cq2qy23sa1a5zk6nja3c652mp29i84yfrkcwks6i8sdqwli36jy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ cppo dune-configurator ]
|
||||
++ optional (!versionAtLeast ocaml.version "4.08") ocaml-syntax-shims
|
||||
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 ];
|
||||
|
||||
|
@ -36,15 +36,6 @@ buildDunePackage rec {
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
buildInputs = [
|
||||
afl-persistent
|
||||
bigarray-compat
|
||||
bigarray-overlap
|
||||
bigstringaf
|
||||
fpath
|
||||
mirage-crypto-rng
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
angstrom
|
||||
base64
|
||||
@ -59,6 +50,12 @@ buildDunePackage rec {
|
||||
rresult
|
||||
unstrctrd
|
||||
uutf
|
||||
afl-persistent
|
||||
bigarray-compat
|
||||
bigarray-overlap
|
||||
bigstringaf
|
||||
fpath
|
||||
mirage-crypto-rng
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user