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
44 lines
1019 B
Nix
44 lines
1019 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gosmee";
|
|
version = "0.28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chmouel";
|
|
repo = "gosmee";
|
|
rev = "v${version}";
|
|
hash = "sha256-RJYa6bpd3OUhHhj1vECy8LKSyfIdl2SHedhGgsJclSo=";
|
|
};
|
|
vendorHash = null;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postPatch = ''
|
|
printf ${version} > gosmee/templates/version
|
|
'';
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd gosmee \
|
|
--bash <($out/bin/gosmee completion bash) \
|
|
--fish <($out/bin/gosmee completion fish) \
|
|
--zsh <($out/bin/gosmee completion zsh)
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command line server and client for webhooks deliveries (and https://smee.io)";
|
|
homepage = "https://github.com/chmouel/gosmee";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
vdemeester
|
|
chmouel
|
|
];
|
|
};
|
|
}
|