summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-01-12 20:37:25 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2021-01-21 11:26:26 +0100
commit223474d8acd83d833997414318503eb941b11e57 (patch)
treeac7a9104bccec4a8e54151e127a0df99bb536d23 /pkgs/development/ocaml-modules
parent972571d8b178baef64c6b68e20dd97dd0fc5a5c7 (diff)
ocamlPackages.yojson: use dune install in installPhase
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/yojson/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/yojson/default.nix b/pkgs/development/ocaml-modules/yojson/default.nix
index 61d931a66cc2..c9bf285b7bda 100644
--- a/pkgs/development/ocaml-modules/yojson/default.nix
+++ b/pkgs/development/ocaml-modules/yojson/default.nix
@@ -7,7 +7,11 @@ let
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
sha256 = "08llz96if8bcgnaishf18si76cv11zbkni0aldb54k3cn7ipiqvd";
nativeBuildInputs = [ dune ];
- extra = { inherit (dune) installPhase; };
+ extra = {
+ installPhase = ''
+ dune install --prefix $out --libdir $OCAMLFIND_DESTDIR ${pname}
+ '';
+ };
} else rec {
version = "1.2.3";
url = "https://github.com/ocaml-community/yojson/archive/v${version}.tar.gz";