2021-10-25 23:43:57 +00:00
|
|
|
{ buildDunePackage
|
2022-04-08 06:32:52 +00:00
|
|
|
, fetchurl
|
2021-10-25 23:43:57 +00:00
|
|
|
, findlib
|
|
|
|
, lib
|
|
|
|
, ocaml
|
|
|
|
, re
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "coin";
|
2022-04-08 06:32:52 +00:00
|
|
|
version = "0.1.4";
|
2021-10-25 23:43:57 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
|
2022-04-08 06:32:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/coin/releases/download/v${version}/coin-${version}.tbz";
|
|
|
|
sha256 = "sha256:0069qqswd1ik5ay3d5q1v1pz0ql31kblfsnv0ax0z8jwvacp3ack";
|
2021-10-25 23:43:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/dune --replace 'ocaml} ' \
|
|
|
|
'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
|
|
|
|
'';
|
|
|
|
|
2022-04-08 06:32:52 +00:00
|
|
|
nativeBuildInputs = [ findlib ];
|
2022-02-22 09:59:04 +00:00
|
|
|
buildInputs = [ re ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2021-10-25 23:43:57 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A library to normalize an KOI8-{U,R} input to Unicode";
|
|
|
|
homepage = "https://github.com/mirage/coin";
|
2022-05-13 23:48:49 +00:00
|
|
|
license = lib.licenses.mit;
|
2021-11-03 00:38:27 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2022-05-13 23:48:49 +00:00
|
|
|
mainProgram = "coin.generate";
|
2021-10-25 23:43:57 +00:00
|
|
|
};
|
|
|
|
}
|