Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
813 B
Nix
38 lines
813 B
Nix
{
|
|
buildDunePackage,
|
|
fetchurl,
|
|
findlib,
|
|
lib,
|
|
ocaml,
|
|
re,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "coin";
|
|
version = "0.1.4";
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/coin/releases/download/v${version}/coin-${version}.tbz";
|
|
sha256 = "sha256:0069qqswd1ik5ay3d5q1v1pz0ql31kblfsnv0ax0z8jwvacp3ack";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/dune --replace 'ocaml} ' \
|
|
'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
|
|
'';
|
|
|
|
nativeBuildInputs = [ findlib ];
|
|
buildInputs = [ re ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Library to normalize an KOI8-{U,R} input to Unicode";
|
|
homepage = "https://github.com/mirage/coin";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
mainProgram = "coin.generate";
|
|
};
|
|
}
|