about summary refs log tree commit diff
path: root/pkgs/tools/misc/dt-shell-color-scripts
diff options
context:
space:
mode:
authorJakob Neufeld <jakob.n.neufeld@gmail.com>2022-07-06 00:54:38 +0200
committerJakob Neufeld <jakob@mast3rsoft.com>2022-07-06 01:09:04 +0200
commit469ed5a81262da29abaa16f01e2ac052c3f7b936 (patch)
tree57585779c35e6b7afe976d572a9f287b32990da6 /pkgs/tools/misc/dt-shell-color-scripts
parent0738126ae582ed5e03d0141f7889b323b6b0974a (diff)
dt-shell-color-scripts: unstable-2022-02-22 -> unstable-2022-07-25
Diffstat (limited to 'pkgs/tools/misc/dt-shell-color-scripts')
-rw-r--r--pkgs/tools/misc/dt-shell-color-scripts/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/tools/misc/dt-shell-color-scripts/default.nix b/pkgs/tools/misc/dt-shell-color-scripts/default.nix
index 6a0b3da4410fb..4dedbd66b332d 100644
--- a/pkgs/tools/misc/dt-shell-color-scripts/default.nix
+++ b/pkgs/tools/misc/dt-shell-color-scripts/default.nix
@@ -1,22 +1,23 @@
 { stdenv
 , lib
 , fetchFromGitLab
+, installShellFiles
 , runtimeShell
 , makeWrapper
 }:
 
 stdenv.mkDerivation {
   pname = "dt-shell-color-scripts";
-  version = "unstable-2022-02-22";
+  version = "unstable-2022-07-25";
 
   src = fetchFromGitLab {
     owner = "dwt1";
     repo = "shell-color-scripts";
-    rev = "fcd013ea2e1ff80e01adbcea9d0eaf9c73db94c0";
-    sha256 = "sha256-bd3NBf99rCiADUKQb6fzCBDaKBmYaZHcO4qokm/39do=";
+    rev = "da2e3c512b94f312ee54a38d5cde131b0511ad01";
+    sha256 = "sha256-cdTgBbtsbJHaJuLIcZh0g0jKOrQyFx3P6QhYNx8hz0U=";
   };
 
-  nativeBuildInputs = [ makeWrapper ];
+  nativeBuildInputs = [ makeWrapper installShellFiles ];
 
   installPhase = ''
     runHook preInstall
@@ -25,6 +26,9 @@ stdenv.mkDerivation {
     mkdir -p $out/bin
     mkdir -p $out/opt/shell-color-scripts/
     cp -r colorscripts $out/opt/shell-color-scripts/colorscripts
+    installManPage colorscript.1
+    installShellCompletion --fish completions/colorscript.fish
+    installShellCompletion --zsh completions/_colorscript
     chmod +x colorscript.sh
     cp colorscript.sh $out/bin/colorscript
     substituteInPlace $out/bin/colorscript \