about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorUlrik Strid <ulrik.strid@outlook.com>2021-06-29 15:39:21 +0200
committerGitHub <noreply@github.com>2021-06-29 15:39:21 +0200
commit99d3252b18a7d3e22406182a5a3b12ccb55ab8b9 (patch)
tree76db5b81fab78985279b707107ccffd5e04f93b4 /pkgs/development/ocaml-modules
parent8f353edb83e3c71191171b053af0a412f41950f9 (diff)
downloadnixlib-99d3252b18a7d3e22406182a5a3b12ccb55ab8b9.tar
nixlib-99d3252b18a7d3e22406182a5a3b12ccb55ab8b9.tar.gz
nixlib-99d3252b18a7d3e22406182a5a3b12ccb55ab8b9.tar.bz2
nixlib-99d3252b18a7d3e22406182a5a3b12ccb55ab8b9.tar.lz
nixlib-99d3252b18a7d3e22406182a5a3b12ccb55ab8b9.tar.xz
nixlib-99d3252b18a7d3e22406182a5a3b12ccb55ab8b9.tar.zst
nixlib-99d3252b18a7d3e22406182a5a3b12ccb55ab8b9.zip
ocamlPackages.stringext: 1.4.0 -> 1.6.0 (#128598)
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/stringext/default.nix30
1 files changed, 11 insertions, 19 deletions
diff --git a/pkgs/development/ocaml-modules/stringext/default.nix b/pkgs/development/ocaml-modules/stringext/default.nix
index ae797815aed5..8aaf36baa8b5 100644
--- a/pkgs/development/ocaml-modules/stringext/default.nix
+++ b/pkgs/development/ocaml-modules/stringext/default.nix
@@ -1,32 +1,24 @@
-{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, ounit, qcheck
+{ lib, fetchurl, ocaml, buildDunePackage, ounit, qtest
 # Optionally enable tests; test script use OCaml-4.01+ features
-, doCheck ? lib.versionAtLeast (lib.getVersion ocaml) "4.01"
+, doCheck ? lib.versionAtLeast ocaml.version "4.04"
 }:
 
-let version = "1.4.3"; in
+let version = "1.6.0"; in
 
-stdenv.mkDerivation {
-  name = "ocaml${ocaml.version}-stringext-${version}";
-
-  src = fetchzip {
-    url = "https://github.com/rgrinberg/stringext/archive/v${version}.tar.gz";
-    sha256 = "121k79vjazvsd254yg391fp4spsd1p32amccrahd0g6hjhf5w6sl";
+buildDunePackage {
+  pname = "stringext";
+  version = version;
+  useDune2 = true;
+  src = fetchurl {
+    url = "https://github.com/rgrinberg/stringext/releases/download/${version}/stringext-${version}.tbz";
+    sha256 = "1sh6nafi3i9773j5mlwwz3kxfzdjzsfqj2qibxhigawy5vazahfv";
   };
 
-  buildInputs = [ ocaml findlib ocamlbuild ounit qcheck ];
-
-  configurePhase = "ocaml setup.ml -configure --prefix $out"
-  + lib.optionalString doCheck " --enable-tests";
-  buildPhase = "ocaml setup.ml -build";
+  checkInputs = [ ounit qtest ];
   inherit doCheck;
-  checkPhase = "ocaml setup.ml -test";
-  installPhase = "ocaml setup.ml -install";
-
-  createFindlibDestdir = true;
 
   meta = {
     homepage = "https://github.com/rgrinberg/stringext";
-    platforms = ocaml.meta.platforms or [];
     description = "Extra string functions for OCaml";
     license = lib.licenses.mit;
     maintainers = with lib.maintainers; [ vbgl ];