biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / pet / default.nix
blob3250107cbf0eb5e15bbfba6e24e62c13c1988d23
1 { buildGoModule, fetchFromGitHub, installShellFiles, lib }:
3 buildGoModule rec {
4   pname = "pet";
5   version = "0.7.0";
7   src = fetchFromGitHub {
8     owner = "knqyf263";
9     repo = "pet";
10     rev = "v${version}";
11     sha256 = "sha256-2C87oqMyq85cbN2rq8aEkEyFC5IZCw75TMQSjzR+RrY=";
12   };
14   vendorHash = "sha256-ebdPWKNL9i3sEGpfDCXIfOaFQjV5LXohug2qFXeWenk=";
16   ldflags = [
17     "-s" "-w" "-X=github.com/knqyf263/pet/cmd.version=${version}"
18   ];
20   doCheck = false;
22   subPackages = [ "." ];
24   nativeBuildInputs = [
25     installShellFiles
26   ];
28   postInstall = ''
29     installShellCompletion --cmd pet \
30       --zsh ./misc/completions/zsh/_pet
31   '';
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   };