nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 ipaddr,
6 macaddr,
7}:
8
9buildDunePackage (finalAttrs: {
10 pname = "tuntap";
11 version = "2.0.1";
12
13 src = fetchurl {
14 url = "https://github.com/mirage/ocaml-tuntap/releases/download/v${finalAttrs.version}/tuntap-${finalAttrs.version}.tbz";
15 hash = "sha256-J8YBl8w7xFloDqt/Xiz03KCIls5BR72VT8X/LYZMDN0=";
16 };
17
18 propagatedBuildInputs = [
19 ipaddr
20 macaddr
21 ];
22
23 # tests manipulate network devices and use network
24 # also depend on LWT 5
25 doCheck = false;
26
27 meta = {
28 description = "Bindings to the UNIX tuntap facility";
29 homepage = "https://github.com/mirage/ocaml-tuntap";
30 license = lib.licenses.isc;
31 };
32})