about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authora-n-n-a-l-e-e <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2024-02-20 12:00:47 -0800
committerGitHub <noreply@github.com>2024-02-20 12:00:47 -0800
commitc55877fec80f586f8205c98ae3024bcc05e04689 (patch)
treea050c8d37ccb92495285d93d09c8fe40b75d74c2 /pkgs
parent57d41a34f2e7e9b8b612f47bb249355d7fc55e0b (diff)
parent3fedc5e1196144f065bba27378095575b4a5ad2e (diff)
downloadnixlib-c55877fec80f586f8205c98ae3024bcc05e04689.tar
nixlib-c55877fec80f586f8205c98ae3024bcc05e04689.tar.gz
nixlib-c55877fec80f586f8205c98ae3024bcc05e04689.tar.bz2
nixlib-c55877fec80f586f8205c98ae3024bcc05e04689.tar.lz
nixlib-c55877fec80f586f8205c98ae3024bcc05e04689.tar.xz
nixlib-c55877fec80f586f8205c98ae3024bcc05e04689.tar.zst
nixlib-c55877fec80f586f8205c98ae3024bcc05e04689.zip
Merge pull request #288124 from D3vil0p3r/patch-17
dns2tcp: init at 0.5.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/dn/dns2tcp/package.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/dn/dns2tcp/package.nix b/pkgs/by-name/dn/dns2tcp/package.nix
new file mode 100644
index 000000000000..2cbd2149d0e5
--- /dev/null
+++ b/pkgs/by-name/dn/dns2tcp/package.nix
@@ -0,0 +1,40 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, fetchpatch
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "dns2tcp";
+  version = "0.5.2";
+
+  src = fetchFromGitHub {
+    owner = "alex-sector";
+    repo = "dns2tcp";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-oBKkuQGVQNVzx8pds3qkZkZpwg8b44g1ovonrq2nqKw=";
+  };
+
+  patches = [
+    # fixes gcc-10 build issues.
+    (fetchpatch {
+      url = "https://salsa.debian.org/debian/dns2tcp/-/raw/86b518ce169e88488d71c6b0270d4fc814dc1fbc/debian/patches/01_fix_gcc10_issues.patch.";
+      hash = "sha256-IGpUIajkhruou7meZZJEJ5nnsQ/hVflyPfAuh3J0otI=";
+    })
+    # fixes some spelling errors.
+    (fetchpatch {
+      url = "https://salsa.debian.org/debian/dns2tcp/-/raw/13481f37b7184e52b83cc0c41edfc6b20a5debed/debian/patches/fix_spelling_errors.patch";
+      hash = "sha256-b65olctlwLOY2GnVb7i7axGFiR0iLoTYstXdtVkU3vQ=";
+    })
+  ];
+
+
+  meta = with lib; {
+    description = "A tool for relaying TCP connections over DNS";
+    homepage = "https://github.com/alex-sector/dns2tcp";
+    license = licenses.gpl2Plus;
+    mainProgram = "dns2tcpc";
+    maintainers = with maintainers; [ d3vil0p3r ];
+    platforms = platforms.unix;
+  };
+})