1 { buildGoModule, fetchFromGitHub, installShellFiles, lib }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-2C87oqMyq85cbN2rq8aEkEyFC5IZCw75TMQSjzR+RrY=";
14 vendorHash = "sha256-ebdPWKNL9i3sEGpfDCXIfOaFQjV5LXohug2qFXeWenk=";
17 "-s" "-w" "-X=github.com/knqyf263/pet/cmd.version=${version}"
22 subPackages = [ "." ];
29 installShellCompletion --cmd pet \
30 --zsh ./misc/completions/zsh/_pet
34 description = "Simple command-line snippet manager, written in Go";
36 homepage = "https://github.com/knqyf263/pet";
37 license = licenses.mit;
38 maintainers = with maintainers; [ kalbasit ];
39 platforms = platforms.linux ++ platforms.darwin;