summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-11-16 13:00:48 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2022-11-16 14:30:37 +0100
commita834cc840fddf422d8b8ba6c2b06726cdacf2eec (patch)
treef11370b02dcc7eb013a2a83c4fcf7947eab88eea
parentc3642217fcbd72aee2334b78be1b34124040955e (diff)
ocamlPackages.ocaml_extlib: 1.7.8 -> 1.7.9
Use new dune based build system. This no longer has a way to enable the non-minimal build. As it turns out, though, no package required that (and it was impossible to get a non-minimal extlib build from OPAM before anyways). The old expression needs to be retained for extlib 1.7.7 and just moved over.
-rw-r--r--pkgs/development/ocaml-modules/extlib/1.7.7.nix29
-rw-r--r--pkgs/development/ocaml-modules/extlib/default.nix26
-rw-r--r--pkgs/top-level/ocaml-packages.nix9
3 files changed, 37 insertions, 27 deletions
diff --git a/pkgs/development/ocaml-modules/extlib/1.7.7.nix b/pkgs/development/ocaml-modules/extlib/1.7.7.nix
index d27fe085569f..7ab61a146a95 100644
--- a/pkgs/development/ocaml-modules/extlib/1.7.7.nix
+++ b/pkgs/development/ocaml-modules/extlib/1.7.7.nix
@@ -1,14 +1,33 @@
# Older version of extlib for Haxe 4.0 and 4.1.
# May be replaceable by the next extlib + extlib-base64 release.
-{ lib, fetchurl, ocaml, ocaml_extlib }:
+{ stdenv, lib, fetchurl, ocaml, findlib, cppo
+# De facto, option minimal seems to be the default. See the README.
+, minimal ? true
+}:
-ocaml_extlib.overrideAttrs (x: rec {
+stdenv.mkDerivation rec {
+ pname = "ocaml${ocaml.version}-extlib";
version = "1.7.7";
+
src = fetchurl {
- url = "https://github.com/ygrek/ocaml-extlib/releases/download/${version}/extlib-${version}.tar.gz";
+ url = "https://ygrek.org/p/release/ocaml-extlib/extlib-${version}.tar.gz";
sha256 = "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1";
};
- meta = x.meta // {
+
+ nativeBuildInputs = [ ocaml findlib cppo ];
+
+ strictDeps = true;
+
+ createFindlibDestdir = true;
+
+ makeFlags = lib.optional minimal "minimal=1";
+
+ meta = {
+ homepage = "https://github.com/ygrek/ocaml-extlib";
+ description = "Enhancements to the OCaml Standard Library modules";
+ license = lib.licenses.lgpl21Only;
+ inherit (ocaml.meta) platforms;
+ maintainers = [ lib.maintainers.sternenseemann ];
broken = lib.versionAtLeast ocaml.version "4.12";
};
-})
+}
diff --git a/pkgs/development/ocaml-modules/extlib/default.nix b/pkgs/development/ocaml-modules/extlib/default.nix
index 7baee7a6032a..35b8c59091cc 100644
--- a/pkgs/development/ocaml-modules/extlib/default.nix
+++ b/pkgs/development/ocaml-modules/extlib/default.nix
@@ -1,30 +1,24 @@
-{ stdenv, lib, fetchurl, ocaml, findlib, cppo
-# De facto, option minimal seems to be the default. See the README.
-, minimal ? true
-}:
+{ buildDunePackage, lib, fetchurl, cppo }:
-stdenv.mkDerivation rec {
- pname = "ocaml${ocaml.version}-extlib";
- version = "1.7.8";
+buildDunePackage rec {
+ pname = "extlib";
+ version = "1.7.9";
+
+ minimalOCamlVersion = "4.02";
src = fetchurl {
- url = "https://ygrek.org/p/release/ocaml-extlib/extlib-${version}.tar.gz";
- sha256 = "0npq4hq3zym8nmlyji7l5cqk6drx2rkcx73d60rxqh5g8dla8p4k";
+ url = "https://ygrek.org/p/release/ocaml-${pname}/${pname}-${version}.tar.gz";
+ sha512 = "2386ac69f037ea520835c0624d39ae9fbffe43a20b18e247de032232ed6f419d667b53d2314c6f56dc71d368bf0b6201a56c2f3f2a5bdfd933766c5a6cb98768";
};
- nativeBuildInputs = [ ocaml findlib cppo ];
-
- strictDeps = true;
-
- createFindlibDestdir = true;
+ nativeBuildInputs = [ cppo ];
- makeFlags = lib.optional minimal "minimal=1";
+ doCheck = true;
meta = {
homepage = "https://github.com/ygrek/ocaml-extlib";
description = "Enhancements to the OCaml Standard Library modules";
license = lib.licenses.lgpl21Only;
- inherit (ocaml.meta) platforms;
maintainers = [ lib.maintainers.sternenseemann ];
};
}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 0a218ef11d9d..85464170df39 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -1260,9 +1260,9 @@ let
ocaml-protoc = callPackage ../development/ocaml-modules/ocaml-protoc { };
- ocaml_extlib = ocaml_extlib-1-7-8;
+ ocaml_extlib = ocaml_extlib-1-7-9;
- ocaml_extlib-1-7-8 = callPackage ../development/ocaml-modules/extlib { };
+ ocaml_extlib-1-7-9 = callPackage ../development/ocaml-modules/extlib { };
ocaml_extlib-1-7-7 = callPackage ../development/ocaml-modules/extlib/1.7.7.nix { };
@@ -1621,10 +1621,7 @@ let
omake_rc1 = callPackage ../development/tools/ocaml/omake/0.9.8.6-rc1.nix { };
- google-drive-ocamlfuse = callPackage ../applications/networking/google-drive-ocamlfuse {
- # needs Base64 module
- ocaml_extlib = ocaml_extlib.override { minimal = false; };
- };
+ google-drive-ocamlfuse = callPackage ../applications/networking/google-drive-ocamlfuse { };
hol_light = callPackage ../applications/science/logic/hol_light { };