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 2 lib, 3 3 buildGoModule, 4 4 fetchFromGitHub, 5 - fetchpatch, 6 5 }: 7 6 8 7 buildGoModule rec { ··· 11 10 12 11 src = fetchFromGitHub { 13 12 owner = "pwnesia"; 14 - repo = pname; 15 - rev = "v${version}"; 16 - sha256 = "sha256-k6j7DIwK8YAKmEjn8JJO7XBcap9ui6cgUSJG7CeHAAM="; 13 + repo = "dnstake"; 14 + tag = "v${version}"; 15 + hash = "sha256-k6j7DIwK8YAKmEjn8JJO7XBcap9ui6cgUSJG7CeHAAM="; 17 16 }; 18 17 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 18 vendorHash = "sha256-lV6dUl+OMUQfhlgNL38k0Re1Mr3VP9b8SI3vTJ8CP18="; 29 19 30 20 meta = with lib; { 31 21 description = "Tool to check missing hosted DNS zones"; 32 22 homepage = "https://github.com/pwnesia/dnstake"; 33 - license = with licenses; [ mit ]; 23 + changelog = "https://github.com/pwnesia/dnstake/releases/tag/${src.tag}"; 24 + license = licenses.mit; 34 25 maintainers = with maintainers; [ fab ]; 35 26 mainProgram = "dnstake"; 36 27 };