summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/resource-pooling
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-02-11 17:45:17 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2020-02-14 10:09:41 +0100
commitc589de98e247e87b7e6e5274c1226d888c3f207b (patch)
treef49bf3e55d8f777f9d44a22272378f0ae7f29e94 /pkgs/development/ocaml-modules/resource-pooling
parenta1d8399ff18f1eb933b714e29fc28f1f699b3e39 (diff)
downloadnixpkgs-c589de98e247e87b7e6e5274c1226d888c3f207b.tar
nixpkgs-c589de98e247e87b7e6e5274c1226d888c3f207b.tar.gz
nixpkgs-c589de98e247e87b7e6e5274c1226d888c3f207b.tar.bz2
nixpkgs-c589de98e247e87b7e6e5274c1226d888c3f207b.tar.lz
nixpkgs-c589de98e247e87b7e6e5274c1226d888c3f207b.tar.xz
nixpkgs-c589de98e247e87b7e6e5274c1226d888c3f207b.tar.zst
nixpkgs-c589de98e247e87b7e6e5274c1226d888c3f207b.zip
ocamlPackages.resource-pooling: 0.6 → 1.1
ocamlPackages.ocsigen-start: 1.8.0 → 2.7.0
Diffstat (limited to 'pkgs/development/ocaml-modules/resource-pooling')
-rw-r--r--pkgs/development/ocaml-modules/resource-pooling/default.nix27
1 files changed, 9 insertions, 18 deletions
diff --git a/pkgs/development/ocaml-modules/resource-pooling/default.nix b/pkgs/development/ocaml-modules/resource-pooling/default.nix
index 9a053d4e9a2..773fb76bcc7 100644
--- a/pkgs/development/ocaml-modules/resource-pooling/default.nix
+++ b/pkgs/development/ocaml-modules/resource-pooling/default.nix
@@ -1,35 +1,26 @@
-{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, lwt_log }:
+{ lib, fetchFromGitHub, buildDunePackage, lwt_log }:
 
-let pname = "resource-pooling"; in
+buildDunePackage rec {
+  version = "1.1";
+  pname = "resource-pooling";
 
-if !stdenv.lib.versionAtLeast ocaml.version "4.06"
-then throw "${pname} is not available for OCaml ${ocaml.version}"
-else
-
-stdenv.mkDerivation rec {
-  version = "0.6";
-  name = "ocaml${ocaml.version}-${pname}-${version}";
+  minimumOCamlVersion = "4.06";
 
   src = fetchFromGitHub {
     owner = "ocsigen";
     repo = pname;
     rev = version;
-    sha256 = "1hw98a4pndq6ms4vfsyz0ynfz8g21fm73fc7s1gx824fhdx4ywgd";
+    sha256 = "0wsbnwszafdv3gsiiaslgf6m6pfx74h7h19i0gp2c4ivdiv3wck9";
   };
 
-  buildInputs = [ ocaml findlib ocamlbuild ];
   propagatedBuildInputs = [ lwt_log ];
 
-  configurePhase = "ocaml setup.ml -configure --prefix $out";
-  buildPhase = "ocaml setup.ml -build";
-  createFindlibDestdir = true;
-  installPhase = "ocaml setup.ml -install";
+  doCheck = true;
 
   meta = {
     inherit (src.meta) homepage;
-    inherit (ocaml.meta) platforms;
     description = "A library for pooling resources like connections, threads, or similar";
-    license = stdenv.lib.licenses.mit;
-    maintainers = [ stdenv.lib.maintainers.vbgl ];
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.vbgl ];
   };
 }