Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5 ocaml, 6 dune-configurator, 7}: 8 9lib.throwIf (lib.versionAtLeast ocaml.version "5.0") 10 "vlq is not available for OCaml ${ocaml.version}" 11 12 buildDunePackage 13 rec { 14 pname = "vlq"; 15 version = "0.2.1"; 16 17 src = fetchurl { 18 url = "https://github.com/flowtype/ocaml-vlq/releases/download/v${version}/vlq-v${version}.tbz"; 19 sha256 = "02wr9ph4q0nxmqgbc67ydf165hmrdv9b655krm2glc3ahb6larxi"; 20 }; 21 22 buildInputs = [ dune-configurator ]; 23 24 meta = { 25 description = "Encoding variable-length quantities, in particular base64"; 26 license = lib.licenses.mit; 27 homepage = "https://github.com/flowtype/ocaml-vlq"; 28 maintainers = [ lib.maintainers.nomeata ]; 29 }; 30 31 }