summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/networking/mktuntap/default.nix22
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/networking/mktuntap/default.nix b/pkgs/tools/networking/mktuntap/default.nix
new file mode 100644
index 00000000000..bb1b29dbc11
--- /dev/null
+++ b/pkgs/tools/networking/mktuntap/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, lib, fetchgit }:
+
+stdenv.mkDerivation {
+  pname = "mktuntap-unstable";
+  version = "2019-12-15";
+
+  src = fetchgit {
+    url = "https://spectrum-os.org/git/mktuntap";
+    rev = "d37b0ea1f794a4d195323b16484ecc4f04cc4306";
+    sha256 = "17ygj3z91llkav5bclrd6cizqhrhpdjgfyyqhdxg8wwpcx8gs7xd";
+  };
+
+  installFlags = [ "prefix=$(out)" ];
+
+  meta = with lib; {
+    description = "Utility program for creating TAP and TUN devices";
+    homepage = "https://spectrum-os.org/git/mktaptun";
+    maintainers = with maintainers; [ qyliss ];
+    license = licenses.gpl2;
+    platform = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 379cb90f742..48e66aed5d8 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4992,6 +4992,8 @@ in
 
   mkrand = callPackage ../tools/security/mkrand { };
 
+  mktuntap = callPackage ../tools/networking/mktuntap { };
+
   mktemp = callPackage ../tools/security/mktemp { };
 
   mktorrent = callPackage ../tools/misc/mktorrent { };