diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-08-20 07:17:40 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-08-27 08:10:33 +0200 |
commit | 6ff80288afa167d071884cb82e2bb9c2dd1b8aa4 (patch) | |
tree | 52f0fc2401804c446b790fc34d0ec0f1a4f8cb6e /pkgs/development/ocaml-modules/camlpdf | |
parent | c5f5462eb4d7d7e8f8804df34705843f45176b74 (diff) | |
download | nixpkgs-6ff80288afa167d071884cb82e2bb9c2dd1b8aa4.tar nixpkgs-6ff80288afa167d071884cb82e2bb9c2dd1b8aa4.tar.gz nixpkgs-6ff80288afa167d071884cb82e2bb9c2dd1b8aa4.tar.bz2 nixpkgs-6ff80288afa167d071884cb82e2bb9c2dd1b8aa4.tar.lz nixpkgs-6ff80288afa167d071884cb82e2bb9c2dd1b8aa4.tar.xz nixpkgs-6ff80288afa167d071884cb82e2bb9c2dd1b8aa4.tar.zst nixpkgs-6ff80288afa167d071884cb82e2bb9c2dd1b8aa4.zip |
ocamlPackages.camlpdf: also install native libraries
Diffstat (limited to 'pkgs/development/ocaml-modules/camlpdf')
-rw-r--r-- | pkgs/development/ocaml-modules/camlpdf/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/camlpdf/default.nix b/pkgs/development/ocaml-modules/camlpdf/default.nix index fa5ffabedad..3c58ff33211 100644 --- a/pkgs/development/ocaml-modules/camlpdf/default.nix +++ b/pkgs/development/ocaml-modules/camlpdf/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, ocaml, findlib }: +{ stdenv, fetchFromGitHub, which, ocaml, findlib }: if !stdenv.lib.versionAtLeast ocaml.version "4.02" then throw "camlpdf is not available for OCaml ${ocaml.version}" @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { sha256 = "1z8h6bjzmlscr6h6kdvzj8kspifb4n9dg7zi54z1cv2qi03kr8dk"; }; - buildInputs = [ ocaml findlib ]; + buildInputs = [ which ocaml findlib ]; # Version number in META file is wrong patchPhase = '' @@ -26,7 +26,9 @@ stdenv.mkDerivation rec { EOF ''; - createFindlibDestdir = true; + preInstall = '' + mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs + ''; meta = with stdenv.lib; { description = "An OCaml library for reading, writing and modifying PDF files"; |