nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "dns2tcp"; 10 version = "0.5.2"; 11 12 src = fetchFromGitHub { 13 owner = "alex-sector"; 14 repo = "dns2tcp"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-oBKkuQGVQNVzx8pds3qkZkZpwg8b44g1ovonrq2nqKw="; 17 }; 18 19 patches = [ 20 # fixes gcc-10 build issues. 21 (fetchpatch { 22 url = "https://salsa.debian.org/debian/dns2tcp/-/raw/86b518ce169e88488d71c6b0270d4fc814dc1fbc/debian/patches/01_fix_gcc10_issues.patch."; 23 hash = "sha256-IGpUIajkhruou7meZZJEJ5nnsQ/hVflyPfAuh3J0otI="; 24 }) 25 # fixes some spelling errors. 26 (fetchpatch { 27 url = "https://salsa.debian.org/debian/dns2tcp/-/raw/13481f37b7184e52b83cc0c41edfc6b20a5debed/debian/patches/fix_spelling_errors.patch"; 28 hash = "sha256-b65olctlwLOY2GnVb7i7axGFiR0iLoTYstXdtVkU3vQ="; 29 }) 30 ]; 31 32 meta = with lib; { 33 description = "Tool for relaying TCP connections over DNS"; 34 homepage = "https://github.com/alex-sector/dns2tcp"; 35 license = licenses.gpl2Plus; 36 mainProgram = "dns2tcpc"; 37 maintainers = with maintainers; [ d3vil0p3r ]; 38 platforms = platforms.unix; 39 }; 40})