dt-shell-color-scripts: unstable-2022-02-22 -> unstable-2022-07-25

This commit is contained in:
Jakob Neufeld 2022-07-06 00:54:38 +02:00 committed by Jakob Neufeld
parent 0738126ae5
commit 469ed5a812

View File

@ -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 \