blob: 5ae4b5d8dc8b2ba138ddba00534772bc58139160 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "gosmee";
version = "0.22.1";
src = fetchFromGitHub {
owner = "chmouel";
repo = "gosmee";
rev = "v${version}";
sha256 = "sha256-UnGzPkbw7x8l1+9xEXFiJZFzJT5yu7MCgPKkKzaFqkk=";
};
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 ];
};
}
|