fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
2
3buildGoModule rec {
4 pname = "pet";
5 version = "0.8.4";
6
7 src = fetchFromGitHub {
8 owner = "knqyf263";
9 repo = "pet";
10 rev = "v${version}";
11 sha256 = "sha256-XFizQxegyMIAUEKT8/kzWyC4TWICMUE7SuHQsTNpK4w=";
12 };
13
14 vendorHash = "sha256-XvSg7EhFdK7wt1Eei56pj/emiE4qsVJkOpgPNsnDNc4=";
15
16 ldflags = [
17 "-s" "-w" "-X=github.com/knqyf263/pet/cmd.version=${version}"
18 ];
19
20 doCheck = false;
21
22 subPackages = [ "." ];
23
24 nativeBuildInputs = [
25 installShellFiles
26 ];
27
28 postInstall = ''
29 installShellCompletion --cmd pet \
30 --zsh ./misc/completions/zsh/_pet
31 '';
32
33 meta = with lib; {
34 description = "Simple command-line snippet manager, written in Go";
35 mainProgram = "pet";
36 homepage = "https://github.com/knqyf263/pet";
37 license = licenses.mit;
38 maintainers = with maintainers; [ kalbasit ];
39 platforms = platforms.linux ++ platforms.darwin;
40 };
41}