Merge pull request #61922 from mnacamura/camlpdf

ocamlPackages.{camlpdf,cpdf}: fix build
This commit is contained in:
Silvan Mosberger 2019-05-24 15:53:18 +02:00 committed by GitHub
commit 2764e7e97a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

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

View file

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