2021-03-09 03:18:52 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, ocaml, cmdliner, ptime }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
|
|
|
pname = "crunch";
|
|
|
|
version = "3.1.0";
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-crunch/releases/download/v${version}/crunch-v${version}.tbz";
|
|
|
|
sha256 = "0d26715a4h9r1wibnc12xy690m1kan7hrcgbb5qk8x78zsr67lnf";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cmdliner ptime ];
|
|
|
|
|
|
|
|
outputs = [ "lib" "bin" "out" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-03-09 03:18:52 +00:00
|
|
|
dune install --prefix=$bin --libdir=$lib/lib/ocaml/${ocaml.version}/site-lib/
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/mirage/ocaml-crunch";
|
|
|
|
description = "Convert a filesystem into a static OCaml module";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|