From eb464f2771a3796dd54c27d58fe58e9ee6a493e8 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 13 Jun 2023 06:25:04 +0200 Subject: [PATCH 1/3] =?UTF-8?q?ocamlPackages.parmap:=201.2.4=20=E2=86=92?= =?UTF-8?q?=201.2.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/parmap/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/ocaml-modules/parmap/default.nix b/pkgs/development/ocaml-modules/parmap/default.nix index 18e1975b698d..a8885aa27f27 100644 --- a/pkgs/development/ocaml-modules/parmap/default.nix +++ b/pkgs/development/ocaml-modules/parmap/default.nix @@ -1,12 +1,14 @@ -{ lib, fetchurl, buildDunePackage, dune-configurator }: +{ lib, fetchFromGitHub, buildDunePackage, dune-configurator }: buildDunePackage rec { pname = "parmap"; - version = "1.2.4"; + version = "1.2.5"; - src = fetchurl { - url = "https://github.com/rdicosmo/${pname}/releases/download/${version}/${pname}-${version}.tbz"; - sha256 = "sha256-BTkSEjIK3CVNloJACFo6eQ6Ob9o/cdrA9xuv87NKas4="; + src = fetchFromGitHub { + owner = "rdicosmo"; + repo = pname; + rev = version; + hash = "sha256-tBu7TGtDOe5FbxLZuz6nl+65aN9FHIngq/O4dJWzr3Q="; }; minimalOCamlVersion = "4.03"; From 635e71f62c734dc1f2a9d8f61b43bb032a183c83 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 13 Jun 2023 06:25:28 +0200 Subject: [PATCH 2/3] =?UTF-8?q?ocamlPackages.cudf:=200.9=20=E2=86=92=200.1?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocaml-modules/cudf/default.nix | 43 ++++++------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/pkgs/development/ocaml-modules/cudf/default.nix b/pkgs/development/ocaml-modules/cudf/default.nix index 6cef074498d6..18ea3defa193 100644 --- a/pkgs/development/ocaml-modules/cudf/default.nix +++ b/pkgs/development/ocaml-modules/cudf/default.nix @@ -1,46 +1,27 @@ -{ lib, fetchurl, stdenv, ocaml, ocamlbuild, findlib, extlib, glib, perl, pkg-config, stdlib-shims, ounit }: +{ lib, buildDunePackage, ocaml, fetchFromGitLab, extlib, ounit2 }: -stdenv.mkDerivation rec { - pname = "ocaml${ocaml.version}-cudf"; - version = "0.9"; +buildDunePackage rec { + pname = "cudf"; + version = "0.10"; - src = fetchurl { - url = "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz"; - sha256 = "sha256-mTLk2V3OI1sUNIYv84nM3reiirf0AuozG5ZzLCmn4Rw="; + minimalOCamlVersion = "4.07"; + + src = fetchFromGitLab { + owner = "irill"; + repo = pname; + rev = "v${version}"; + hash = "sha256-E4KXKnso/Q3ZwcYpKPgvswNR9qd/lafKljPMxfStedM="; }; - buildFlags = [ - "all" - "opt" - ]; - - nativeBuildInputs = [ - findlib - ocaml - ocamlbuild - pkg-config - perl - ]; - buildInputs = [ - glib - stdlib-shims - ]; propagatedBuildInputs = [ extlib ]; - checkTarget = [ - "all" - "test" - ]; checkInputs = [ - ounit + ounit2 ]; doCheck = lib.versionAtLeast ocaml.version "4.08"; - preInstall = "mkdir -p $OCAMLFIND_DESTDIR"; - installFlags = [ "BINDIR=$(out)/bin" ]; - meta = with lib; { description = "A library for CUDF format"; homepage = "https://www.mancoosi.org/cudf/"; From b4e057c88d3a97d2c11a0ba61775d222dbc459a9 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 13 Jun 2023 06:25:34 +0200 Subject: [PATCH 3/3] ocamlPackages.dose3: cleanup --- .../ocaml-modules/dose3/default.nix | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/pkgs/development/ocaml-modules/dose3/default.nix b/pkgs/development/ocaml-modules/dose3/default.nix index 1146da5d3067..4210dde025c0 100644 --- a/pkgs/development/ocaml-modules/dose3/default.nix +++ b/pkgs/development/ocaml-modules/dose3/default.nix @@ -1,7 +1,7 @@ { lib, buildDunePackage, fetchFromGitLab -, camlzip, ocamlgraph, parmap, re, stdlib-shims -, base64, bz2, extlib, cudf -, dpkg, git, ocaml, ounit, python39, python39Packages +, ocamlgraph, parmap, re, stdlib-shims +, base64, extlib, cudf +, ocaml, ounit }: buildDunePackage rec { @@ -15,8 +15,7 @@ buildDunePackage rec { sha256 = "sha256-K0fYSAWV48Rers/foDrEIqieyJ0PvpXkuYrFrZGBkkE="; }; - minimalOCamlVersion = "4.03"; - useDune2 = true; + minimalOCamlVersion = "4.07"; buildInputs = [ parmap @@ -24,8 +23,6 @@ buildDunePackage rec { propagatedBuildInputs = [ base64 - bz2 - camlzip cudf extlib ocamlgraph @@ -33,17 +30,10 @@ buildDunePackage rec { stdlib-shims ]; - nativeCheckInputs = [ - python39 # Replaces: conf-python-3 - python39Packages.pyyaml # Replaces: conf-python3-yaml - git - ]; checkInputs = [ - dpkg # Replaces: conf-dpkg ounit ]; - doCheck = false; # Tests are failing. - # To enable tests use: lib.versionAtLeast ocaml.version "4.04"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = with lib; { description = "Dose library (part of Mancoosi tools)";