Skip to content

Commit

Permalink
graphviz: fix vimdot program
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
bjornfor committed Mar 9, 2013
1 parent 29442fd commit 74d6315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/tools/graphics/graphviz/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 74d6315

Please sign in to comment.