at 23.05-pre 44 lines 1.4 kB view raw
1{ stdenv, lib, fetchurl, buildDunePackage 2, alcotest, mirage-crypto-rng, git-binary 3, angstrom, astring, cstruct, decompress, digestif, encore, fmt, checkseum 4, fpath, ke, logs, lwt, ocamlgraph, uri, rresult, base64, hxd 5, result, bigstringaf, optint, mirage-flow, domain-name, emile 6, mimic, carton, carton-lwt, carton-git, ipaddr, psq, crowbar, alcotest-lwt, cmdliner 7}: 8 9buildDunePackage rec { 10 pname = "git"; 11 version = "3.10.0"; 12 13 minimalOCamlVersion = "4.08"; 14 15 src = fetchurl { 16 url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz"; 17 sha256 = "sha256-slUzAT4qwPzUNzHMbib/ArxaGzcMFl8tg0ynq1y5U1M="; 18 }; 19 20 # remove changelog for the carton package 21 postPatch = '' 22 rm CHANGES.carton.md 23 ''; 24 25 buildInputs = [ 26 base64 27 ]; 28 propagatedBuildInputs = [ 29 angstrom astring checkseum cstruct decompress digestif encore fmt fpath 30 ke logs lwt ocamlgraph uri rresult result bigstringaf optint mirage-flow 31 domain-name emile mimic carton carton-lwt carton-git ipaddr psq hxd 32 ]; 33 checkInputs = [ 34 alcotest alcotest-lwt mirage-crypto-rng git-binary crowbar cmdliner 35 ]; 36 doCheck = !stdenv.isAarch64; 37 38 meta = { 39 description = "Git format and protocol in pure OCaml"; 40 license = lib.licenses.isc; 41 maintainers = with lib.maintainers; [ sternenseemann vbgl ]; 42 homepage = "https://github.com/mirage/ocaml-git"; 43 }; 44}