mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
af34e3be8c
ocamlPackages.alcotest: 1.5.0 → 1.6.0 ocamlPackages.crowbar: 0.2 → 0.2.1 ocamlPackages.dune-release: 1.5.1 → 1.6.2 ocamlPackages.functoria: 3.1.1 → 4.2.0 ocamlPackages.mirage: 3.10.7 → 4.2.0 ocamlPackages.irmin-pack: disable checks ocamlPackages.mdx: disable checks ocamlPackages.git-unix: mark as broken
33 lines
793 B
Nix
33 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 ];
|
|
};
|
|
|
|
}
|