ocamlPackages.crunch: use Dune 2
This commit is contained in:
parent
ae4b158b6d
commit
0f24f12bb4
@ -1,10 +1,12 @@
|
||||
{ lib, buildDunePackage, fetchurl, ocaml, cmdliner, opaline, ptime }:
|
||||
{ lib, buildDunePackage, fetchurl, ocaml, cmdliner, ptime }:
|
||||
|
||||
buildDunePackage rec {
|
||||
|
||||
pname = "crunch";
|
||||
version = "3.1.0";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/ocaml-crunch/releases/download/v${version}/crunch-v${version}.tbz";
|
||||
sha256 = "0d26715a4h9r1wibnc12xy690m1kan7hrcgbb5qk8x78zsr67lnf";
|
||||
@ -15,7 +17,7 @@ buildDunePackage rec {
|
||||
outputs = [ "lib" "bin" "out" ];
|
||||
|
||||
installPhase = ''
|
||||
${opaline}/bin/opaline -prefix $bin -libdir $lib/lib/ocaml/${ocaml.version}/site-lib/
|
||||
dune install --prefix=$bin --libdir=$lib/lib/ocaml/${ocaml.version}/site-lib/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user