blob: 02ebcaa2fb960ecc7959eb990a3c247f73a3d01e (
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
39
40
|
{ lib, buildGoModule, installShellFiles, fetchFromGitHub }:
buildGoModule rec {
pname = "pop";
version = "0.2.0";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "pop";
rev = "v${version}";
hash = "sha256-ZGJkpa1EIw3tt1Ww2HFFoYsnnmnSAiv86XEB5TPf4/k=";
};
vendorHash = "sha256-8YcJXvR0cdL9PlP74Qh6uN2XZoN16sz/yeeZlBsk5N8=";
GOWORK = "off";
nativeBuildInputs = [
installShellFiles
];
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
postInstall = ''
$out/bin/pop man > pop.1
installManPage pop.1
installShellCompletion --cmd pop \
--bash <($out/bin/pop completion bash) \
--fish <($out/bin/pop completion fish) \
--zsh <($out/bin/pop completion zsh)
'';
meta = with lib; {
description = "Send emails from your terminal";
homepage = "https://github.com/charmbracelet/pop";
changelog = "https://github.com/charmbracelet/pop/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ caarlos0 maaslalani ];
};
}
|