technitium-dns-server{,-library}: modernize package with structuredAttrs and finalAttrs

(cherry picked from commit cae8a466bd)
This commit is contained in:
Leon Hubrich
2026-07-18 23:02:49 +02:00
committed by github-actions[bot]
parent 8623c4c20a
commit 00a57db57c
2 changed files with 10 additions and 8 deletions

View File

@@ -5,16 +5,17 @@
dotnetCorePackages,
nix-update-script,
}:
buildDotnetModule rec {
buildDotnetModule (finalAttrs: {
pname = "technitium-dns-server-library";
version = "15.3.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "TechnitiumSoftware";
repo = "TechnitiumLibrary";
tag = "dns-server-v${version}";
tag = "dns-server-v${finalAttrs.version}";
hash = "sha256-BQWDzMEiChY8uX1wUUZNWFDomGqUyDrZ6+UEncC5G5U=";
name = "${pname}-${version}";
};
dotnet-sdk = dotnetCorePackages.sdk_10_0;
@@ -41,4 +42,4 @@ buildDotnetModule rec {
];
platforms = lib.platforms.linux;
};
}
})

View File

@@ -8,16 +8,17 @@
nixosTests,
nix-update-script,
}:
buildDotnetModule rec {
buildDotnetModule (finalAttrs: {
pname = "technitium-dns-server";
version = "15.3.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "TechnitiumSoftware";
repo = "DnsServer";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-nopmnQpozvN0p/SyUCH3Yej/oAhDvNdfJssUA1JyGsk=";
name = "${pname}-${version}";
};
dotnet-sdk = dotnetCorePackages.sdk_10_0;
@@ -59,4 +60,4 @@ buildDotnetModule rec {
];
platforms = lib.platforms.linux;
};
}
})