ocamlPackages.coin: init 0.1.3
This commit is contained in:
parent
60982b14d9
commit
b397bd63b7
38
pkgs/development/ocaml-modules/coin/default.nix
Normal file
38
pkgs/development/ocaml-modules/coin/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -195,6 +195,8 @@ let
|
||||
|
||||
conduit-mirage = callPackage ../development/ocaml-modules/conduit/mirage.nix { };
|
||||
|
||||
coin = callPackage ../development/ocaml-modules/coin { };
|
||||
|
||||
config-file = callPackage ../development/ocaml-modules/config-file { };
|
||||
|
||||
containers = callPackage ../development/ocaml-modules/containers { };
|
||||
|
Loading…
Reference in New Issue
Block a user