graphviz: fix vimdot program
vimdot doesn't work at the moment because one of its dependencies, 'which', is missing; vimdot fails to find gvim or vim and aborts. Instead of adding a dependency on 'which', replace it with the POSIX command 'command -v'.
This commit is contained in:
parent
29442fd614
commit
74d6315024
@ -32,8 +32,10 @@ stdenv.mkDerivation rec {
|
||||
sed -e 's@am__append_5 *=.*@am_append_5 =@' -i lib/gvc/Makefile
|
||||
'';
|
||||
|
||||
# "command -v" is POSIX, "which" is not
|
||||
postInstall = ''
|
||||
sed -i 's|`which lefty`|"'$out'/bin/lefty"|' $out/bin/dotty
|
||||
sed -i 's|which|command -v|' $out/bin/vimdot
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user