2021-10-28 06:52:43 +00:00
|
|
|
{ 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;
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ menhir findlib ];
|
|
|
|
buildInputs = [ re ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
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";
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|