summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2017-02-18 22:54:02 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-02-23 08:01:29 +0000
commit8352e0b38c65a736219619d8821ad50f787e58d1 (patch)
treef07487c56fcc4de043a9a017b05873319c56e1d9 /pkgs/development
parent6c37a92b2bdb77465b9486e904b83895b2b45596 (diff)
downloadnixpkgs-8352e0b38c65a736219619d8821ad50f787e58d1.tar
nixpkgs-8352e0b38c65a736219619d8821ad50f787e58d1.tar.gz
nixpkgs-8352e0b38c65a736219619d8821ad50f787e58d1.tar.bz2
nixpkgs-8352e0b38c65a736219619d8821ad50f787e58d1.tar.lz
nixpkgs-8352e0b38c65a736219619d8821ad50f787e58d1.tar.xz
nixpkgs-8352e0b38c65a736219619d8821ad50f787e58d1.tar.zst
nixpkgs-8352e0b38c65a736219619d8821ad50f787e58d1.zip
ocaml-ipaddr: 2.6.1 -> 2.7.2
Keeps the legacy version under attribute `ipaddr_p4`;
it is needed for OCaml < 4.02 and some libraries (eg `conduit`).
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/ocaml-modules/conduit/default.nix4
-rw-r--r--pkgs/development/ocaml-modules/ipaddr/2.6.1.nix32
-rw-r--r--pkgs/development/ocaml-modules/ipaddr/default.nix22
-rw-r--r--pkgs/development/ocaml-modules/ocsigen-server/default.nix4
4 files changed, 43 insertions, 19 deletions
diff --git a/pkgs/development/ocaml-modules/conduit/default.nix b/pkgs/development/ocaml-modules/conduit/default.nix
index 22c74d7f92e..d1da95ffaa1 100644
--- a/pkgs/development/ocaml-modules/conduit/default.nix
+++ b/pkgs/development/ocaml-modules/conduit/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildOcaml, fetchurl, ocaml, sexplib_p4, stringext, uri_p4, cstruct, ipaddr
+{ stdenv, buildOcaml, fetchurl, ocaml, sexplib_p4, stringext, uri_p4, cstruct, ipaddr_p4
 , asyncSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
 , async_p4 ? null, async_ssl_p4 ? null, lwt ? null
 }:
@@ -12,7 +12,7 @@ buildOcaml rec {
     sha256 = "5cf1a46aa0254345e5143feebe6b54bdef96314e9987f44e69f24618d620faa1";
   };
 
-  propagatedBuildInputs = [ sexplib_p4 stringext uri_p4 cstruct ipaddr ];
+  propagatedBuildInputs = [ sexplib_p4 stringext uri_p4 cstruct ipaddr_p4 ];
   buildInputs = stdenv.lib.optional (lwt != null) lwt
              ++ stdenv.lib.optional (asyncSupport && async_p4 != null) async_p4
              ++ stdenv.lib.optional (asyncSupport && async_ssl_p4 != null) async_ssl_p4;
diff --git a/pkgs/development/ocaml-modules/ipaddr/2.6.1.nix b/pkgs/development/ocaml-modules/ipaddr/2.6.1.nix
new file mode 100644
index 00000000000..cdc273d6ecf
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ipaddr/2.6.1.nix
@@ -0,0 +1,32 @@
+{stdenv, buildOcaml, fetchurl, sexplib_p4}:
+
+buildOcaml rec {
+  name = "ipaddr";
+  version = "2.6.1";
+
+  src = fetchurl {
+    url = "https://github.com/mirage/ocaml-ipaddr/archive/${version}.tar.gz";
+    sha256 = "7051013d8f58abff433187d70cd7ddd7a6b49a6fbe6cad1893f571f65b8ed3d0";
+  };
+
+  propagatedBuildInputs = [ sexplib_p4 ];
+
+  configurePhase = ''
+   ocaml setup.ml -configure --prefix $out
+  '';
+
+  buildPhase =  ''
+  make build
+  '';
+
+  installPhase =  ''
+  make install
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/mirage/ocaml-ipaddr;
+    description = "A library for manipulation of IP (and MAC) address representations ";
+    license = licenses.mit;
+    maintainers = [ maintainers.ericbmerritt ];
+  };
+}
diff --git a/pkgs/development/ocaml-modules/ipaddr/default.nix b/pkgs/development/ocaml-modules/ipaddr/default.nix
index cdc273d6ecf..0b561ab6d69 100644
--- a/pkgs/development/ocaml-modules/ipaddr/default.nix
+++ b/pkgs/development/ocaml-modules/ipaddr/default.nix
@@ -1,27 +1,19 @@
-{stdenv, buildOcaml, fetchurl, sexplib_p4}:
+{ stdenv, buildOcaml, fetchurl, ocamlbuild, findlib
+, topkg, sexplib, ppx_sexp_conv, opam }:
 
 buildOcaml rec {
   name = "ipaddr";
-  version = "2.6.1";
+  version = "2.7.2";
 
   src = fetchurl {
     url = "https://github.com/mirage/ocaml-ipaddr/archive/${version}.tar.gz";
-    sha256 = "7051013d8f58abff433187d70cd7ddd7a6b49a6fbe6cad1893f571f65b8ed3d0";
+    sha256 = "0mnjw1xjr8vyn5x1nnbbxfxhs77znwrkz8c144w47zk2pc3xrh9d";
   };
 
-  propagatedBuildInputs = [ sexplib_p4 ];
+  buildInputs = [ findlib ocamlbuild topkg ppx_sexp_conv opam ];
+  propagatedBuildInputs = [ sexplib ];
 
-  configurePhase = ''
-   ocaml setup.ml -configure --prefix $out
-  '';
-
-  buildPhase =  ''
-  make build
-  '';
-
-  installPhase =  ''
-  make install
-  '';
+  inherit (topkg) buildPhase installPhase;
 
   meta = with stdenv.lib; {
     homepage = https://github.com/mirage/ocaml-ipaddr;
diff --git a/pkgs/development/ocaml-modules/ocsigen-server/default.nix b/pkgs/development/ocaml-modules/ocsigen-server/default.nix
index 5c424cfe059..8d949497b46 100644
--- a/pkgs/development/ocaml-modules/ocsigen-server/default.nix
+++ b/pkgs/development/ocaml-modules/ocsigen-server/default.nix
@@ -1,6 +1,6 @@
 {stdenv, fetchurl, ocaml, findlib, which, ocaml_react, ocaml_ssl,
 ocaml_lwt, ocamlnet, ocaml_pcre, cryptokit, tyxml, ipaddr, zlib,
-libev, openssl, ocaml_sqlite3, tree, uutf, makeWrapper
+libev, openssl, ocaml_sqlite3, tree, uutf, makeWrapper, camlp4
 }:
 
 let mkpath = p: n:
@@ -18,7 +18,7 @@ stdenv.mkDerivation {
 
   buildInputs = [ocaml which findlib ocaml_react ocaml_ssl ocaml_lwt
   ocamlnet ocaml_pcre cryptokit tyxml ipaddr zlib libev openssl
-  ocaml_sqlite3 tree uutf makeWrapper ];
+  ocaml_sqlite3 tree uutf makeWrapper camlp4 ];
 
   configureFlags = "--root $(out) --prefix /";