diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-12-15 21:57:54 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-12-15 21:57:54 +0100 |
commit | 4a00e1793b26046c4513198306e91018d2597011 (patch) | |
tree | 8b75d4021485b96a92c229c561dcc221ca78ee65 /pkgs/development/ocaml-modules | |
parent | 038f4ce1d18d6fe3a2796a5a6cfc09d799958601 (diff) | |
download | nixpkgs-4a00e1793b26046c4513198306e91018d2597011.tar nixpkgs-4a00e1793b26046c4513198306e91018d2597011.tar.gz nixpkgs-4a00e1793b26046c4513198306e91018d2597011.tar.bz2 nixpkgs-4a00e1793b26046c4513198306e91018d2597011.tar.lz nixpkgs-4a00e1793b26046c4513198306e91018d2597011.tar.xz nixpkgs-4a00e1793b26046c4513198306e91018d2597011.tar.zst nixpkgs-4a00e1793b26046c4513198306e91018d2597011.zip |
ocaml-tuntap: init at 1.3.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/tuntap/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/tuntap/default.nix b/pkgs/development/ocaml-modules/tuntap/default.nix new file mode 100644 index 00000000000..de520c643fe --- /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; + }; + +} |