Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

dnstake: refactor

+5 -14
+5 -14
pkgs/by-name/dn/dnstake/package.nix
··· 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 - fetchpatch, 6 }: 7 8 buildGoModule rec { ··· 11 12 src = fetchFromGitHub { 13 owner = "pwnesia"; 14 - repo = pname; 15 - rev = "v${version}"; 16 - sha256 = "sha256-k6j7DIwK8YAKmEjn8JJO7XBcap9ui6cgUSJG7CeHAAM="; 17 }; 18 19 - patches = [ 20 - # https://github.com/pwnesia/dnstake/pull/36 21 - (fetchpatch { 22 - name = "update-x-sys-fix-darwin.patch"; 23 - url = "https://github.com/pwnesia/dnstake/commit/974efbbff4ce26d2f2646ca2ceb1316c131cefbe.patch"; 24 - sha256 = "sha256-fLOGF8damdLROd8T0fH/FGSVX23dtc+yHhSvVCwVeuY="; 25 - }) 26 - ]; 27 - 28 vendorHash = "sha256-lV6dUl+OMUQfhlgNL38k0Re1Mr3VP9b8SI3vTJ8CP18="; 29 30 meta = with lib; { 31 description = "Tool to check missing hosted DNS zones"; 32 homepage = "https://github.com/pwnesia/dnstake"; 33 - license = with licenses; [ mit ]; 34 maintainers = with maintainers; [ fab ]; 35 mainProgram = "dnstake"; 36 };
··· 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 }: 6 7 buildGoModule rec { ··· 10 11 src = fetchFromGitHub { 12 owner = "pwnesia"; 13 + repo = "dnstake"; 14 + tag = "v${version}"; 15 + hash = "sha256-k6j7DIwK8YAKmEjn8JJO7XBcap9ui6cgUSJG7CeHAAM="; 16 }; 17 18 vendorHash = "sha256-lV6dUl+OMUQfhlgNL38k0Re1Mr3VP9b8SI3vTJ8CP18="; 19 20 meta = with lib; { 21 description = "Tool to check missing hosted DNS zones"; 22 homepage = "https://github.com/pwnesia/dnstake"; 23 + changelog = "https://github.com/pwnesia/dnstake/releases/tag/${src.tag}"; 24 + license = licenses.mit; 25 maintainers = with maintainers; [ fab ]; 26 mainProgram = "dnstake"; 27 };