ocamlPackages.yojson: use dune install in installPhase
This commit is contained in:
parent
972571d8b1
commit
223474d8ac
@ -7,7 +7,11 @@ let
|
|||||||
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
|
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
|
||||||
sha256 = "08llz96if8bcgnaishf18si76cv11zbkni0aldb54k3cn7ipiqvd";
|
sha256 = "08llz96if8bcgnaishf18si76cv11zbkni0aldb54k3cn7ipiqvd";
|
||||||
nativeBuildInputs = [ dune ];
|
nativeBuildInputs = [ dune ];
|
||||||
extra = { inherit (dune) installPhase; };
|
extra = {
|
||||||
|
installPhase = ''
|
||||||
|
dune install --prefix $out --libdir $OCAMLFIND_DESTDIR ${pname}
|
||||||
|
'';
|
||||||
|
};
|
||||||
} else rec {
|
} else rec {
|
||||||
version = "1.2.3";
|
version = "1.2.3";
|
||||||
url = "https://github.com/ocaml-community/yojson/archive/v${version}.tar.gz";
|
url = "https://github.com/ocaml-community/yojson/archive/v${version}.tar.gz";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user