2024-12-10 19:26:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nixosTests,
|
2023-05-31 13:08:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "acme-dns";
|
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joohoi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-qQwvhouqzkChWeu65epgoeMNqZyAD18T+xqEMgdMbhA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-q/P+cH2OihvPxPj2XWeLsTBHzQQABp0zjnof+Ys/qKo=";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -D -m0444 -t $out/lib/systemd/system ./acme-dns.service
|
|
|
|
substituteInPlace $out/lib/systemd/system/acme-dns.service --replace "/usr/local/bin/acme-dns" "$out/bin/acme-dns"
|
|
|
|
'';
|
|
|
|
|
2023-05-31 13:08:39 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) acme-dns; };
|
|
|
|
|
2023-05-31 13:08:35 +00:00
|
|
|
meta = {
|
|
|
|
description = "Limited DNS server to handle ACME DNS challenges easily and securely";
|
|
|
|
homepage = "https://github.com/joohoi/acme-dns";
|
|
|
|
changelog = "https://github.com/joohoi/acme-dns/releases/tag/${src.rev}";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ emilylange ];
|
2023-07-31 19:21:43 +00:00
|
|
|
mainProgram = "acme-dns";
|
2023-05-31 13:08:35 +00:00
|
|
|
};
|
|
|
|
}
|