diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix index 79f5bac7f88c..9bc51c2183b0 100644 --- a/pkgs/tools/graphics/graphviz/default.nix +++ b/pkgs/tools/graphics/graphviz/default.nix @@ -12,6 +12,7 @@ , libjpeg , libpng , libtool +, makeWrapper , pango , bash , bison @@ -43,6 +44,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook + makeWrapper pkg-config python3 bison @@ -81,9 +83,11 @@ stdenv.mkDerivation rec { postFixup = optionalString withXorg '' substituteInPlace $out/bin/vimdot \ - --replace '"/usr/bin/vi"' '"$(command -v vi)"' \ - --replace '"/usr/bin/vim"' '"$(command -v vim)"' \ - --replace /usr/bin/vimdot $out/bin/vimdot \ + --replace-warn '"/usr/bin/vi"' '"$(command -v vi)"' \ + --replace-warn '"/usr/bin/vim"' '"$(command -v vim)"' \ + --replace-warn /usr/bin/vimdot $out/bin/vimdot + + wrapProgram $out/bin/vimdot --prefix PATH : "$out/bin" ''; passthru.tests = {