mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
666df9d6ac
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
39 lines
916 B
Nix
39 lines
916 B
Nix
{ 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 ];
|
|
};
|
|
}
|