nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 lwt,
6 mirage-net,
7 cstruct,
8 ipaddr,
9 macaddr,
10 duration,
11 logs,
12}:
13
14buildDunePackage rec {
15 pname = "mirage-vnetif";
16 version = "0.6.2";
17
18 minimalOCamlVersion = "4.06";
19
20 src = fetchurl {
21 url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
22 hash = "sha256-SorcrPRhhCYhHasLQGHvTtLo229/3xVB6f7/XOlFRSI=";
23 };
24
25 propagatedBuildInputs = [
26 lwt
27 mirage-net
28 cstruct
29 ipaddr
30 macaddr
31 duration
32 logs
33 ];
34
35 meta = {
36 description = "Virtual network interface and software switch for Mirage";
37 homepage = "https://github.com/mirage/${pname}";
38 license = lib.licenses.isc;
39 maintainers = [ lib.maintainers.sternenseemann ];
40 };
41}