mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
technitium-dns-server{,-library}: modernize package with structuredAttrs and finalAttrs
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user