From 469ed5a81262da29abaa16f01e2ac052c3f7b936 Mon Sep 17 00:00:00 2001 From: Jakob Neufeld Date: Wed, 6 Jul 2022 00:54:38 +0200 Subject: [PATCH] dt-shell-color-scripts: unstable-2022-02-22 -> unstable-2022-07-25 --- pkgs/tools/misc/dt-shell-color-scripts/default.nix | 12 ++++++++---- 1 file 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 6a0b3da4410f..4dedbd66b332 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 \