2022-09-20 07:36:40 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
|
2018-07-23 21:28:29 +00:00
|
|
|
|
2019-03-08 19:46:18 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pet";
|
2021-12-08 00:19:42 +00:00
|
|
|
version = "0.4.0";
|
2018-07-23 21:28:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "knqyf263";
|
|
|
|
repo = "pet";
|
|
|
|
rev = "v${version}";
|
2021-12-08 00:19:42 +00:00
|
|
|
sha256 = "sha256-gVTpzmXekQxGMucDKskGi+e+34nJwwsXwvQTjRO6Gdg=";
|
2018-07-23 21:28:29 +00:00
|
|
|
};
|
|
|
|
|
2022-01-31 20:38:56 +00:00
|
|
|
vendorSha256 = "sha256-dUvp7FEW09V0xMuhewPGw3TuAic/sD7xyXEYviZ2Ivs=";
|
2019-03-08 19:46:18 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-03-08 19:46:18 +00:00
|
|
|
subPackages = [ "." ];
|
2018-07-23 21:28:29 +00:00
|
|
|
|
2022-09-20 07:36:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd pet \
|
|
|
|
--zsh ./misc/completions/zsh/_pet
|
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2018-07-23 21:28:29 +00:00
|
|
|
description = "Simple command-line snippet manager, written in Go";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/knqyf263/pet";
|
2018-07-23 21:28:29 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|