summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-12-15 23:59:33 +0000
committerAlyssa Ross <hi@alyssa.is>2019-12-15 23:59:33 +0000
commit752c156cab8604d0491f266cfb30020713ec4cbc (patch)
treeb9a85a96aa225312643a6500d0de1096b525956f /pkgs
parent6e6ec8b0c230c842ef853951cf51fa80a9382c5c (diff)
downloadnixpkgs-752c156cab8604d0491f266cfb30020713ec4cbc.tar
nixpkgs-752c156cab8604d0491f266cfb30020713ec4cbc.tar.gz
nixpkgs-752c156cab8604d0491f266cfb30020713ec4cbc.tar.bz2
nixpkgs-752c156cab8604d0491f266cfb30020713ec4cbc.tar.lz
nixpkgs-752c156cab8604d0491f266cfb30020713ec4cbc.tar.xz
nixpkgs-752c156cab8604d0491f266cfb30020713ec4cbc.tar.zst
nixpkgs-752c156cab8604d0491f266cfb30020713ec4cbc.zip
mktuntap: init at 2019-12-15
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 { };