summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ppx_import
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-05-28 06:50:17 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2018-06-06 07:14:22 +0000
commit8e0100ba8516a4c0bd7bafa49ccd5673bcadfbfb (patch)
tree8faf26793e6347b27551fa1c2bc15394f54819a2 /pkgs/development/ocaml-modules/ppx_import
parent29a6ca660af6bcc20c87b6b4b88510016551d676 (diff)
downloadnixpkgs-8e0100ba8516a4c0bd7bafa49ccd5673bcadfbfb.tar
nixpkgs-8e0100ba8516a4c0bd7bafa49ccd5673bcadfbfb.tar.gz
nixpkgs-8e0100ba8516a4c0bd7bafa49ccd5673bcadfbfb.tar.bz2
nixpkgs-8e0100ba8516a4c0bd7bafa49ccd5673bcadfbfb.tar.lz
nixpkgs-8e0100ba8516a4c0bd7bafa49ccd5673bcadfbfb.tar.xz
nixpkgs-8e0100ba8516a4c0bd7bafa49ccd5673bcadfbfb.tar.zst
nixpkgs-8e0100ba8516a4c0bd7bafa49ccd5673bcadfbfb.zip
ocamlPackages.ppx_import: use opaline
Diffstat (limited to 'pkgs/development/ocaml-modules/ppx_import')
-rw-r--r--pkgs/development/ocaml-modules/ppx_import/default.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/ppx_import/default.nix b/pkgs/development/ocaml-modules/ppx_import/default.nix
index 991af1e41de..3948cfce0e8 100644
--- a/pkgs/development/ocaml-modules/ppx_import/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_import/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchFromGitHub, buildOcaml, ocaml, opam,
+{stdenv, fetchFromGitHub, buildOcaml, ocaml, opaline,
  cppo, ppx_tools, ounit, ppx_deriving}:
 
 buildOcaml rec {
@@ -15,15 +15,12 @@ buildOcaml rec {
     sha256 = "14c2lp7r9080c4hsb1y1drbxxx3v44b7ib5wfh3kkh3f1jfsjwbk";
   };
 
-  buildInputs = [ cppo ounit ppx_deriving opam ];
+  buildInputs = [ cppo ounit ppx_deriving opaline ];
 
   doCheck = true;
   checkTarget = "test";
 
-  installPhase = ''
-    opam-installer --script --prefix=$out ppx_import.install | sh
-    ln -s $out/lib/ppx_import $out/lib/ocaml/${ocaml.version}/site-lib
-  '';
+  installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
 
   meta = with stdenv.lib; {
     description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";