summary refs log tree commit diff
path: root/pkgs/tools/networking/mktuntap/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/mktuntap/default.nix')
-rw-r--r--pkgs/tools/networking/mktuntap/default.nix22
1 files changed, 22 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..4f77c4ffc82
--- /dev/null
+++ b/pkgs/tools/networking/mktuntap/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, lib, fetchgit }:
+
+stdenv.mkDerivation rec {
+  pname = "mktuntap";
+  version = "1.0";
+
+  src = fetchgit {
+    url = "https://spectrum-os.org/git/mktuntap";
+    rev = version;
+    sha256 = "136ichzd5811n289xqjyha81mln89yxq4a14w46ixnnx69905r47";
+  };
+
+  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;
+  };
+}