depot/third_party/nixpkgs/pkgs/development/ocaml-modules/coin/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
827 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 = with lib.maintainers; [ ];
mainProgram = "coin.generate";
};
}