Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gosmee: init at 0.21.0 #284789

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3610,6 +3610,12 @@
githubId = 1118859;
name = "Scott Worley";
};
chmouel = {
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
email = "[email protected]";
github = "chmouel";
githubId = 98980;
name = "Chmouel Boudjnah";
};
choochootrain = {
email = "[email protected]";
github = "choochootrain";
Expand Down
38 changes: 38 additions & 0 deletions pkgs/by-name/go/gosmee/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:

buildGoModule rec {
pname = "gosmee";
version = "0.21.0";

src = fetchFromGitHub {
owner = "chmouel";
repo = "gosmee";
rev = "v${version}";
sha256 = "sha256-VNBz6roula/YlsYMM1kjQT3TLuQ86/MESzNNkEf/92M=";
};
vendorHash = null;

nativeBuildInputs = [ installShellFiles ];

postPatch = ''
printf ${version} > gosmee/templates/version
'';

postInstall = ''
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 ];
};
}