Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 24 lines 738 B view raw
1{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, ocaml_pcre }: 2 3let version = "1.4"; in 4 5stdenv.mkDerivation { 6 name = "ocaml${ocaml.version}-benchmark-${version}"; 7 8 src = fetchzip { 9 url = "https://github.com/Chris00/ocaml-benchmark/releases/download/${version}/benchmark-${version}.tar.gz"; 10 sha256 = "16wi8ld7c3mq77ylpgbnj8qqqqimyzwxs47v06vyrwpma5pab5xa"; 11 }; 12 13 buildInputs = [ ocaml findlib ocamlbuild ocaml_pcre ]; 14 15 createFindlibDestdir = true; 16 17 meta = { 18 homepage = http://ocaml-benchmark.forge.ocamlcore.org/; 19 platforms = ocaml.meta.platforms or []; 20 description = "Benchmark running times of code"; 21 license = stdenv.lib.licenses.lgpl21; 22 maintainers = with stdenv.lib.maintainers; [ volth ]; 23 }; 24}