aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/tuntap/default.nix
blob: 8e8eaf5fd5e20a3baf35c4e7113549c87eb696b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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;
  };

}