Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildDunePackage, 3 fetchurl, 4 findlib, 5 lib, 6 ocaml, 7 re, 8}: 9 10buildDunePackage rec { 11 pname = "coin"; 12 version = "0.1.4"; 13 minimalOCamlVersion = "4.03"; 14 15 src = fetchurl { 16 url = "https://github.com/mirage/coin/releases/download/v${version}/coin-${version}.tbz"; 17 sha256 = "sha256:0069qqswd1ik5ay3d5q1v1pz0ql31kblfsnv0ax0z8jwvacp3ack"; 18 }; 19 20 postPatch = '' 21 substituteInPlace src/dune --replace 'ocaml} ' \ 22 'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib ' 23 ''; 24 25 nativeBuildInputs = [ findlib ]; 26 buildInputs = [ re ]; 27 28 doCheck = true; 29 30 meta = { 31 description = "Library to normalize an KOI8-{U,R} input to Unicode"; 32 homepage = "https://github.com/mirage/coin"; 33 license = lib.licenses.mit; 34 maintainers = [ ]; 35 mainProgram = "coin.generate"; 36 }; 37}