evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / dn / dns2tcp / package.nix
blobfb1b1ddc47c39c117301f6bc85afcd845f603160
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 }:
7 stdenv.mkDerivation (finalAttrs: {
8   pname = "dns2tcp";
9   version = "0.5.2";
11   src = fetchFromGitHub {
12     owner = "alex-sector";
13     repo = "dns2tcp";
14     rev = "v${finalAttrs.version}";
15     hash = "sha256-oBKkuQGVQNVzx8pds3qkZkZpwg8b44g1ovonrq2nqKw=";
16   };
18   patches = [
19     # fixes gcc-10 build issues.
20     (fetchpatch {
21       url = "https://salsa.debian.org/debian/dns2tcp/-/raw/86b518ce169e88488d71c6b0270d4fc814dc1fbc/debian/patches/01_fix_gcc10_issues.patch.";
22       hash = "sha256-IGpUIajkhruou7meZZJEJ5nnsQ/hVflyPfAuh3J0otI=";
23     })
24     # fixes some spelling errors.
25     (fetchpatch {
26       url = "https://salsa.debian.org/debian/dns2tcp/-/raw/13481f37b7184e52b83cc0c41edfc6b20a5debed/debian/patches/fix_spelling_errors.patch";
27       hash = "sha256-b65olctlwLOY2GnVb7i7axGFiR0iLoTYstXdtVkU3vQ=";
28     })
29   ];
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   };