7 stdenvNoCC.mkDerivation {
8 pname = "dwt1-shell-color-scripts";
9 version = "unstable-2023-03-27";
11 src = fetchFromGitLab {
13 repo = "shell-color-scripts";
14 rev = "576735cf656ece1bfd314e617b91c0e9d486d262";
15 hash = "sha256-1iDcUv6uVq5LzFgZo36RRKqAzKoYKZW/MnlbneayvCY=";
18 nativeBuildInputs = [ installShellFiles ];
21 patchShebangs ./colorscript.sh
22 patchShebangs ./colorscripts
28 mkdir -p $out/bin $out/share/shell-color-scripts
29 install -Dm755 colorscript.sh $out/bin/colorscript
30 cp -r colorscripts $out/share/shell-color-scripts/colorscripts
32 installManPage colorscript.1
33 installShellCompletion --fish completions/colorscript.fish
34 installShellCompletion --zsh completions/_colorscript
41 $out/bin/colorscript \
42 $out/share/fish/vendor_completions.d/colorscript.fish \
43 $out/share/zsh/site-functions/_colorscript \
44 --replace-fail "/opt/shell-color-scripts/colorscripts" \
45 "$out/share/shell-color-scripts/colorscripts"
49 homepage = "https://gitlab.com/dwt1/shell-color-scripts";
50 description = "Collection of shell color scripts collected by dt (Derek Taylor)";
51 license = with lib.licenses; [ mit ];
53 platforms = lib.platforms.all;
54 mainProgram = "colorscript";