3
0
Fork 0
forked from mirrors/nixpkgs

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:
Bjørn Forsman 2013-03-09 21:38:49 +01:00
parent 29442fd614
commit 74d6315024

View file

@ -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 = {