diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-04-27 23:30:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-04-27 23:30:06 +0900 |
| commit | 7699ec49c8615fca45b0f025ddf0cc373d61d720 (patch) | |
| tree | ee51155356e6680fffeceb7dbf74b7f30ce82246 | |
| parent | 63d0cdfa5a754eb76206c21357a62ade6817d257 (diff) | |
| download | nur-packages-7699ec49c8615fca45b0f025ddf0cc373d61d720.tar.gz nur-packages-7699ec49c8615fca45b0f025ddf0cc373d61d720.tar.zst nur-packages-7699ec49c8615fca45b0f025ddf0cc373d61d720.zip | |
feat(term-clock): update
| -rw-r--r-- | pkgs/hgrep/default.nix | 4 | ||||
| -rw-r--r-- | pkgs/term-clock/default.nix | 17 |
2 files changed, 17 insertions, 4 deletions
diff --git a/pkgs/hgrep/default.nix b/pkgs/hgrep/default.nix index 97db780..004041e 100644 --- a/pkgs/hgrep/default.nix +++ b/pkgs/hgrep/default.nix @@ -1,8 +1,8 @@ { - fetchFromGitHub, - installShellFiles, lib, rustPlatform, + fetchFromGitHub, + installShellFiles, }: rustPlatform.buildRustPackage rec { diff --git a/pkgs/term-clock/default.nix b/pkgs/term-clock/default.nix index 3f80adb..ce507fe 100644 --- a/pkgs/term-clock/default.nix +++ b/pkgs/term-clock/default.nix @@ -2,20 +2,33 @@ lib, buildGoModule, fetchFromGitHub, + installShellFiles, }: buildGoModule rec { pname = "term-clock"; - version = "0.1.0"; + version = "1.0.0"; src = fetchFromGitHub { owner = "nsfisis"; repo = "term-clock"; rev = "v${version}"; - hash = "sha256-OUM4TyfqJJBpTFHnD1rwkk7W20SK1T7lxc5i2nL4TbY="; + hash = "sha256-IB6AFQpbTVfDbEbTnq4sWTxKHAoNQlmw5tvBl13y4yc="; }; vendorHash = "sha256-NLxaPtxhb67uhs01DASlAIfCIWV1lnuiu+uFmJcxN0U="; + nativeBuildInputs = [ + installShellFiles + ]; + + postFixup = '' + installShellCompletion --cmd term-clock \ + --bash <($out/bin/term-clock completion bash) \ + --zsh <($out/bin/term-clock completion zsh) \ + --fish <($out/bin/term-clock completion fish) \ + ; + ''; + meta = { description = "A clock on your terminal"; homepage = "https://github.com/nsfisis/term-clock"; |
