ocamlPackages.{camlpdf,cpdf}: fix build

This commit is contained in:
Mitsuhiro Nakamura 2019-05-23 10:11:13 +09:00
parent a86fa90ff9
commit acb5655bd6
2 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,12 @@ stdenv.mkDerivation rec {
EOF EOF
''; '';
makeFlags = with stdenv.lib;
optionals (versionAtLeast ocaml.version "4.06") [
"OCAMLBCFLAGS+=-unsafe-string"
"OCAMLNCFLAGS+=-unsafe-string"
];
createFindlibDestdir = true; createFindlibDestdir = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -14,6 +14,12 @@ stdenv.mkDerivation {
buildInputs = [ ocaml findlib ncurses ]; buildInputs = [ ocaml findlib ncurses ];
propagatedBuildInputs = [ camlpdf ]; propagatedBuildInputs = [ camlpdf ];
makeFlags = with stdenv.lib;
optionals (versionAtLeast ocaml.version "4.06") [
"OCAMLBCFLAGS+=-unsafe-string"
"OCAMLNCFLAGS+=-unsafe-string"
];
createFindlibDestdir = true; createFindlibDestdir = true;
postInstall = '' postInstall = ''