depot/third_party/nixpkgs/pkgs/development/ocaml-modules/tuntap/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
679 B
Nix

{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, 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 ocamlbuild ];
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;
};
}