1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00

ocamlPackages.yojson: use dune install in installPhase

This commit is contained in:
sternenseemann 2021-01-12 20:37:25 +01:00 committed by Vincent Laporte
parent 972571d8b1
commit 223474d8ac

View file

@ -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";