depot/third_party/nixpkgs/pkgs/development/ocaml-modules/coin/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

38 lines
830 B
Nix

{ buildDunePackage
, fetchzip
, findlib
, lib
, menhir
, ocaml
, re
}:
buildDunePackage rec {
pname = "coin";
version = "0.1.3";
minimalOCamlVersion = "4.03";
src = fetchzip {
url = "https://github.com/mirage/coin/releases/download/v${version}/coin-v${version}.tbz";
sha256 = "06bfidvglyp9hzvr2xwbdx8wf26is2xrzc31fldzjf5ab0vd076p";
};
postPatch = ''
substituteInPlace src/dune --replace 'ocaml} ' \
'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
'';
useDune2 = true;
nativeBuildInputs = [ menhir ];
checkInputs = [ re ];
doCheck = true;
meta = {
description = "A library to normalize an KOI8-{U,R} input to Unicode";
license = lib.licenses.mit;
homepage = "https://github.com/mirage/coin";
maintainers = with lib.maintainers; [ superherointj ];
};
}