Skip to content

Commit

Permalink
technitium-dns-server: 13.2 -> 13.2.2, merge library and server
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianRig committed Dec 16, 2024
1 parent a27ac57 commit 5f45369
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 48 deletions.
40 changes: 0 additions & 40 deletions pkgs/by-name/te/technitium-dns-server-library/package.nix

This file was deleted.

35 changes: 27 additions & 8 deletions pkgs/by-name/te/technitium-dns-server/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,40 @@
buildDotnetModule,
fetchFromGitHub,
dotnetCorePackages,
technitium-dns-server-library,
nixosTests,
nix-update-script,
}:
let
technitium-library = buildDotnetModule rec {
pname = "TechnitiumLibrary";
version = "13.2.2";

src = fetchFromGitHub {
owner = "TechnitiumSoftware";
repo = "TechnitiumLibrary";
rev = "refs/tags/dns-server-v${version}";
hash = "sha256-KJNz4jhCKySYrYkT3BxqBh9QkeDV0XGHlRg9K0jLvBI=";
name = "${pname}-${version}";
};

dotnet-sdk = dotnetCorePackages.sdk_8_0;

nugetDeps = ./library-nuget-deps.nix;

projectFile = [
"TechnitiumLibrary.ByteTree/TechnitiumLibrary.ByteTree.csproj"
"TechnitiumLibrary.Net/TechnitiumLibrary.Net.csproj"
];
};
in
buildDotnetModule rec {
pname = "technitium-dns-server";
version = "13.2";
version = "13.2.2";

src = fetchFromGitHub {
owner = "TechnitiumSoftware";
repo = "DnsServer";
rev = "refs/tags/v${version}";
hash = "sha256-oxLMBs+XkzvlfSst6ZD56ZIgiXwm0Px8Tn3Trdd/6H8=";
hash = "sha256-oEsJ4P0eUXhIsXCkY3ciJaGmElu745nNiBtlDXpSb6k=";
name = "${pname}-${version}";
};

Expand All @@ -28,8 +49,8 @@ buildDotnetModule rec {

# move dependencies from TechnitiumLibrary to the expected directory
preBuild = ''
mkdir -p ../TechnitiumLibrary/bin
cp -r ${technitium-dns-server-library}/lib/${technitium-dns-server-library.pname}/* ../TechnitiumLibrary/bin/
mkdir -p ../${technitium-library.pname}/bin
cp -r ${technitium-library}/lib/TechnitiumLibrary/* ../${technitium-library.pname}/bin/
'';

postFixup = ''
Expand All @@ -40,8 +61,6 @@ buildDotnetModule rec {
inherit (nixosTests) technitium-dns-server;
};

passthru.updateScript = nix-update-script { };

meta = {
changelog = "https://github.com/TechnitiumSoftware/DnsServer/blob/master/CHANGELOG.md";
description = "Authorative and Recursive DNS server for Privacy and Security";
Expand Down

0 comments on commit 5f45369

Please sign in to comment.