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