Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 25 lines 746 B view raw
1{ lib, buildDunePackage, fetchurl, cstruct, mirage-crypto, alcotest }: 2 3buildDunePackage rec { 4 pname = "hkdf"; 5 version = "1.0.4"; 6 7 minimalOCamlVersion = "4.08"; 8 duneVersion = "3"; 9 10 src = fetchurl { 11 url = "https://github.com/hannesm/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz"; 12 hash = "sha256-uSbW2krEWquZlzXdK7/R91ETFnENeRr6NhAGtv42/Vs="; 13 }; 14 15 propagatedBuildInputs = [ cstruct mirage-crypto ]; 16 checkInputs = [ alcotest ]; 17 doCheck = true; 18 19 meta = with lib; { 20 description = "HMAC-based Extract-and-Expand Key Derivation Function (RFC 5869)"; 21 homepage = "https://github.com/hannesm/ocaml-hkdf"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ sternenseemann ]; 24 }; 25}