Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 ocaml, 6 stdlib-shims, 7 ounit2, 8}: 9 10buildDunePackage rec { 11 pname = "sha"; 12 version = "1.15.4"; 13 14 src = fetchurl { 15 url = "https://github.com/djs55/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz"; 16 hash = "sha256-beWxITmxmZzp30zHiloxiGwqVHydRIvyhT+LU7zx8bE="; 17 }; 18 19 propagatedBuildInputs = [ 20 stdlib-shims 21 ]; 22 23 doCheck = lib.versionAtLeast ocaml.version "4.08"; 24 checkInputs = [ 25 ounit2 26 ]; 27 28 meta = with lib; { 29 description = "Binding for SHA interface code in OCaml"; 30 homepage = "https://github.com/djs55/ocaml-sha/"; 31 license = licenses.isc; 32 maintainers = with maintainers; [ arthurteisseire ]; 33 }; 34}