mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
Merge pull request #180293 from jakobneufeld/master
dt-shell-color-scripts: unstable-2022-02-22 -> unstable-2022-07-25
This commit is contained in:
commit
2863a1232e
1 changed files with 8 additions and 4 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue