Files
nixpkgs/pkgs/by-name/go/gotlsaflare/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
stdenv,
installShellFiles,
}:
buildGoModule (finalAttrs: {
pname = "gotlsaflare";
version = "2.7.4";
src = fetchFromGitHub {
owner = "Stenstromen";
repo = "gotlsaflare";
tag = "v${finalAttrs.version}";
hash = "sha256-Yf3Z+qO3nF1XgDC0ocbNpUJUvwfhw60F5Y5yG55LsJs=";
};
vendorHash = "sha256-d+79m6K1+fy3vyXLKvwNx6mFiO3UO9lHJ07364jVJYM=";
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd gotlsaflare \
--bash <($out/bin/gotlsaflare completion bash) \
--fish <($out/bin/gotlsaflare completion fish) \
--zsh <($out/bin/gotlsaflare completion zsh)
'';
meta = {
description = "Update TLSA DANE records on cloudflare from x509 certificates";
homepage = "https://github.com/Stenstromen/gotlsaflare";
changelog = "https://github.com/Stenstromen/gotlsaflare/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ szlend ];
mainProgram = "gotlsaflare";
};
})