Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 47 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.14.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 hash = "sha256-u1Nq8zo2YfAnRXib+IqYV0sWOGraqxrJC33NdDQaYsE="; 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 nativeCheckInputs = [ 34 git-binary 35 ]; 36 checkInputs = [ 37 alcotest alcotest-lwt mirage-crypto-rng crowbar cmdliner 38 ]; 39 doCheck = !stdenv.isAarch64; 40 41 meta = { 42 description = "Git format and protocol in pure OCaml"; 43 license = lib.licenses.isc; 44 maintainers = with lib.maintainers; [ sternenseemann vbgl ]; 45 homepage = "https://github.com/mirage/ocaml-git"; 46 }; 47}