diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-05-31 11:45:22 +0200 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-05-31 11:15:20 +0000 |
commit | db3bdea8aab01032fc71036d02a8f682e17639e5 (patch) | |
tree | 3912c0f4c8ed49134d5a14a98b12f60bdc8ecce9 | |
parent | 368a6472833faaf61e823332f3a47b593c31dc98 (diff) |
ocamlPackages.benchmark: 1.4 → 1.6
(cherry picked from commit e5e2b16a89cfe526b2923a6deaed35505a8bced5)
-rw-r--r-- | pkgs/development/ocaml-modules/benchmark/default.nix | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/pkgs/development/ocaml-modules/benchmark/default.nix b/pkgs/development/ocaml-modules/benchmark/default.nix index 6c579e127184c..b0e17054eb532 100644 --- a/pkgs/development/ocaml-modules/benchmark/default.nix +++ b/pkgs/development/ocaml-modules/benchmark/default.nix @@ -1,26 +1,17 @@ -{ 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; [ ]; }; } |