Merge pull request #180293 from jakobneufeld/master

dt-shell-color-scripts: unstable-2022-02-22 -> unstable-2022-07-25
This commit is contained in:
Guillaume Girol 2022-07-15 15:54:45 +00:00 committed by GitHub
commit 2863a1232e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 \