diff --git a/pkgs/by-name/dn/dnsmonster/package.nix b/pkgs/by-name/dn/dnsmonster/package.nix index 318f65b1f591..64c59922f958 100644 --- a/pkgs/by-name/dn/dnsmonster/package.nix +++ b/pkgs/by-name/dn/dnsmonster/package.nix @@ -6,14 +6,14 @@ libpcap, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "dnsmonster"; version = "1.1.0"; src = fetchFromGitHub { owner = "mosajjal"; repo = "dnsmonster"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-+GFkGUR3XKDgrxVAZ3MuPxGyI0oGROdhHKMBwMSvoBI="; }; @@ -24,16 +24,16 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X=github.com/mosajjal/dnsmonster/util.releaseVersion=${version}" + "-X=github.com/mosajjal/dnsmonster/util.releaseVersion=${finalAttrs.version}" ]; meta = { description = "Passive DNS Capture and Monitoring Toolkit"; homepage = "https://github.com/mosajjal/dnsmonster"; - changelog = "https://github.com/mosajjal/dnsmonster/releases/tag/${src.tag}"; + changelog = "https://github.com/mosajjal/dnsmonster/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl2Only; maintainers = with lib.maintainers; [ fab ]; broken = stdenv.hostPlatform.isDarwin; mainProgram = "dnsmonster"; }; -} +})