Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitLab, 4 buildDunePackage, 5 uri, 6}: 7 8buildDunePackage rec { 9 pname = "resto"; 10 version = "1.2"; 11 duneVersion = "3"; 12 src = fetchFromGitLab { 13 owner = "nomadic-labs"; 14 repo = "resto"; 15 rev = "v${version}"; 16 hash = "sha256-VdkYUy7Fi53ku6F/1FV55/VcyF/tDZKN4NTMabDd/T4="; 17 }; 18 19 propagatedBuildInputs = [ 20 uri 21 ]; 22 23 # resto has infinite recursion in their tests 24 doCheck = false; 25 26 meta = { 27 description = "Minimal OCaml library for type-safe HTTP/JSON RPCs"; 28 homepage = "https://gitlab.com/nomadic-labs/resto"; 29 license = lib.licenses.mit; 30 maintainers = [ lib.maintainers.ulrikstrid ]; 31 }; 32}