Commit db3bdea8 authored by Vincent Laporte's avatar Vincent Laporte Committed by github-actions[bot]
Browse files

ocamlPackages.benchmark: 1.4 → 1.6

(cherry picked from commit e5e2b16a)
parent 368a6472
Loading
Loading
Loading
Loading
+8 −17
Original line number Diff line number Diff line
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, ocaml_pcre }:
{ lib, fetchurl, buildDunePackage }:

stdenv.mkDerivation rec {
  pname = "ocaml${ocaml.version}-benchmark";
  version = "1.4";
buildDunePackage rec {
  pname = "benchmark";
  version = "1.6";

  src = fetchzip {
    url = "https://github.com/Chris00/ocaml-benchmark/releases/download/${version}/benchmark-${version}.tar.gz";
    sha256 = "16wi8ld7c3mq77ylpgbnj8qqqqimyzwxs47v06vyrwpma5pab5xa";
  src = fetchurl {
    url = "https://github.com/Chris00/ocaml-benchmark/releases/download/${version}/benchmark-${version}.tbz";
    hash = "sha256-Mw19cYya/MEy52PVRYE/B6TnqCWw5tEz9CUrUfKAnPA=";
  };

  strictDeps = true;

  nativeBuildInputs = [ ocaml findlib ocamlbuild ];
  buildInputs = [ ocaml_pcre ];

  createFindlibDestdir = true;

  meta = {
    homepage = "http://ocaml-benchmark.forge.ocamlcore.org/";
    inherit (ocaml.meta) platforms;
    homepage = "https://github.com/Chris00/ocaml-benchmark";
    description = "Benchmark running times of code";
    license = lib.licenses.lgpl21;
    maintainers = with lib.maintainers; [ ];
  };
}