git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.camlpdf: also install native libraries
commit6ff80288afa167d071884cb82e2bb9c2dd1b8aa4 authorVincent Laporte <Vincent.Laporte@gmail.com> dateThu 20 Aug 2020, 07:17 (6 years ago) parentc5f5462
1 file changed+5−3
pkgs/development/ocaml-modules/camlpdf/default.nix+5−3
pkgs/development/ocaml-modules/camlpdf/default.nix+5−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, ocaml, findlib }:
1+{ stdenv, fetchFromGitHub, which, ocaml, findlib }:
22
33if !stdenv.lib.versionAtLeast ocaml.version "4.02"
44then throw "camlpdf is not available for OCaml ${ocaml.version}"
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 sha256 = "1z8h6bjzmlscr6h6kdvzj8kspifb4n9dg7zi54z1cv2qi03kr8dk";
1515 };
1616
17− buildInputs = [ ocaml findlib ];
17+ buildInputs = [ which ocaml findlib ];
1818
1919 # Version number in META file is wrong
2020 patchPhase = ''
@@ -26,7 +26,9 @@ stdenv.mkDerivation rec {
2626 EOF
2727 '';
2828
29− createFindlibDestdir = true;
29+ preInstall = ''
30+ mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
31+ '';
3032
3133 meta = with stdenv.lib; {
3234 description = "An OCaml library for reading, writing and modifying PDF files";