dnsmonster: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-16 08:01:43 +01:00
committed by GitHub
parent 53a2c335b6
commit 0d4bf341cc
+5 -5
View File
@@ -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";
};
}
})