dwt1-shell-color-scripts: fix path for shell completions

This commit is contained in:
Donovan Glover 2024-08-26 00:42:26 -04:00
parent 2becde3c19
commit 99ac962b7a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -37,9 +37,12 @@ stdenvNoCC.mkDerivation {
'';
postFixup = ''
substituteInPlace $out/bin/colorscript \
--replace "/opt/shell-color-scripts/colorscripts" \
"$out/share/shell-color-scripts/colorscripts"
substituteInPlace \
$out/bin/colorscript \
$out/share/fish/vendor_completions.d/colorscript.fish \
$out/share/zsh/site-functions/_colorscript \
--replace-fail "/opt/shell-color-scripts/colorscripts" \
"$out/share/shell-color-scripts/colorscripts"
'';
meta = {