aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/ipaddr
diff options
context:
space:
mode:
authorEric Merritt <eric@afiniate.com>2015-05-15 09:35:42 -0500
committerEric Merritt <eric@afiniate.com>2015-05-24 12:33:19 -0700
commit1c2fcf411503155da7d9ae0eee66f1894f4c511f (patch)
tree950f228e5097a15019deecc61d3e5b36516489e4 /pkgs/development/ocaml-modules/ipaddr
parentea41b6eec8a6b2f191d79de36416672c6ec8d3d7 (diff)
ocaml-ipaddr: add version (2.6.1) to the system
Diffstat (limited to 'pkgs/development/ocaml-modules/ipaddr')
-rw-r--r--pkgs/development/ocaml-modules/ipaddr/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ipaddr/default.nix b/pkgs/development/ocaml-modules/ipaddr/default.nix
new file mode 100644
index 000000000000..749b6a1d94e3
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ipaddr/default.nix
@@ -0,0 +1,32 @@
+{stdenv, buildOcaml, fetchurl, sexplib}:
+
+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 ];
+
+ 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 ];
+ };
+}