From 4a00e1793b26046c4513198306e91018d2597011 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 15 Dec 2015 21:57:54 +0100 Subject: [PATCH] ocaml-tuntap: init at 1.3.0 --- .../ocaml-modules/tuntap/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/ocaml-modules/tuntap/default.nix diff --git a/pkgs/development/ocaml-modules/tuntap/default.nix b/pkgs/development/ocaml-modules/tuntap/default.nix new file mode 100644 index 000000000000..de520c643fe2 --- /dev/null +++ b/pkgs/development/ocaml-modules/tuntap/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchzip, ocaml, findlib, ipaddr }: + +assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01"; + +stdenv.mkDerivation { + name = "ocaml-tuntap-1.3.0"; + + src = fetchzip { + url = https://github.com/mirage/ocaml-tuntap/archive/v1.3.0.tar.gz; + sha256 = "1cmd4kky875ks02gm2nb8yr80hmlfcnjdfyc63hvkh49acssy3d5"; + }; + + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ ipaddr ]; + + createFindlibDestdir = true; + + meta = { + description = "Bindings to the UNIX tuntap facility"; + license = stdenv.lib.licenses.isc; + homepage = https://github.com/mirage/ocaml-tuntap; + inherit (ocaml.meta) platforms; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a6e5918bbf9a..3107318c7dcc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4667,6 +4667,8 @@ let re2 = callPackage ../development/ocaml-modules/re2 { }; + tuntap = callPackage ../development/ocaml-modules/tuntap { }; + tyxml = callPackage ../development/ocaml-modules/tyxml { }; ulex = callPackage ../development/ocaml-modules/ulex { };