depot/third_party/nixpkgs/pkgs/development/ocaml-modules/benchmark/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

26 lines
768 B
Nix

{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, ocaml_pcre }:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-benchmark";
version = "1.4";
src = fetchzip {
url = "https://github.com/Chris00/ocaml-benchmark/releases/download/${version}/benchmark-${version}.tar.gz";
sha256 = "16wi8ld7c3mq77ylpgbnj8qqqqimyzwxs47v06vyrwpma5pab5xa";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
buildInputs = [ ocaml_pcre ];
strictDeps = true;
createFindlibDestdir = true;
meta = {
homepage = "http://ocaml-benchmark.forge.ocamlcore.org/";
platforms = ocaml.meta.platforms or [];
description = "Benchmark running times of code";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ volth ];
};
}