mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
acme-dns: init at 1.0
This commit is contained in:
parent
5e871d8aa6
commit
85f1e0c040
31
pkgs/servers/dns/acme-dns/default.nix
Normal file
31
pkgs/servers/dns/acme-dns/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
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"
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -1303,6 +1303,8 @@ with pkgs;
|
||||
|
||||
accuraterip-checksum = callPackage ../tools/audio/accuraterip-checksum { };
|
||||
|
||||
acme-dns = callPackage ../servers/dns/acme-dns/default.nix { };
|
||||
|
||||
acme-sh = callPackage ../tools/admin/acme-sh { };
|
||||
|
||||
acousticbrainz-client = callPackage ../tools/audio/acousticbrainz-client { };
|
||||
|
Loading…
Reference in New Issue
Block a user