pet: install zsh completion file

This commit is contained in:
ilkecan
2022-09-20 07:36:40 +00:00
parent 24ac72e8a1
commit 731ff64aed
+10 -1
View File
@@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
buildGoModule rec {
pname = "pet";
@@ -17,6 +17,15 @@ buildGoModule rec {
subPackages = [ "." ];
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installShellCompletion --cmd pet \
--zsh ./misc/completions/zsh/_pet
'';
meta = with lib; {
description = "Simple command-line snippet manager, written in Go";
homepage = "https://github.com/knqyf263/pet";