10 pname = "dt-shell-color-scripts";
11 version = "unstable-2022-07-25";
13 src = fetchFromGitLab {
15 repo = "shell-color-scripts";
16 rev = "da2e3c512b94f312ee54a38d5cde131b0511ad01";
17 sha256 = "sha256-cdTgBbtsbJHaJuLIcZh0g0jKOrQyFx3P6QhYNx8hz0U=";
20 nativeBuildInputs = [ makeWrapper installShellFiles ];
24 patchShebangs ./colorscript.sh
25 patchShebangs ./colorscripts
27 mkdir -p $out/opt/shell-color-scripts/
28 cp -r colorscripts $out/opt/shell-color-scripts/colorscripts
29 installManPage colorscript.1
30 installShellCompletion --fish completions/colorscript.fish
31 installShellCompletion --zsh completions/_colorscript
32 chmod +x colorscript.sh
33 cp colorscript.sh $out/bin/colorscript
34 substituteInPlace $out/bin/colorscript \
35 --replace "/opt/shell-color-scripts/colorscripts" "$out/opt/shell-color-scripts/colorscripts"
40 description = "A collection of shell color scripts collected by dt (Derek Taylor)";
41 homepage = "https://gitlab.com/dwt1/shell-color-scripts";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ drzoidberg ];