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