2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, ocaml_pcre }:
|
2017-07-04 21:39:37 +00:00
|
|
|
|
2022-02-10 00:28:00 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-benchmark";
|
|
|
|
version = "1.4";
|
2017-07-04 21:39:37 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/Chris00/ocaml-benchmark/releases/download/${version}/benchmark-${version}.tar.gz";
|
|
|
|
sha256 = "16wi8ld7c3mq77ylpgbnj8qqqqimyzwxs47v06vyrwpma5pab5xa";
|
|
|
|
};
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
buildInputs = [ ocaml_pcre ];
|
|
|
|
|
2017-07-04 21:39:37 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://ocaml-benchmark.forge.ocamlcore.org/";
|
2022-05-10 17:36:58 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2017-07-04 21:39:37 +00:00
|
|
|
description = "Benchmark running times of code";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2022-06-22 22:49:35 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2017-07-04 21:39:37 +00:00
|
|
|
};
|
|
|
|
}
|