depot/third_party/nixpkgs/pkgs/development/tools/ocaml/crunch/default.nix
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

32 lines
793 B
Nix

{ lib, buildDunePackage, fetchurl, ocaml, cmdliner, ptime }:
buildDunePackage rec {
pname = "crunch";
version = "3.3.1";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/mirage/ocaml-crunch/releases/download/v${version}/crunch-${version}.tbz";
sha256 = "sha256-LFug1BELy7dzHLpOr7bESnSHw/iMGtR0AScbaf+o7Wo=";
};
buildInputs = [ cmdliner ];
propagatedBuildInputs = [ ptime ];
outputs = [ "lib" "bin" "out" ];
installPhase = ''
dune install --prefix=$bin --libdir=$lib/lib/ocaml/${ocaml.version}/site-lib/
'';
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 ];
};
}