aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pkgs/hgrep/default.nix4
-rw-r--r--pkgs/term-clock/default.nix17
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";