graphviz: 2.50.0 -> 3.0.0

https://gitlab.com/graphviz/graphviz/-/tags/3.0.0

also fixed the substituteInPlace

it was replacing /usr/bin/vim to $(command -v vi)m
This commit is contained in:
Artturin 2022-05-25 15:15:31 +03:00
parent 39a2f44695
commit bde885a181

View file

@ -27,14 +27,14 @@ let
in in
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "graphviz"; pname = "graphviz";
version = "2.50.0"; version = "3.0.0";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "graphviz"; owner = "graphviz";
repo = "graphviz"; repo = "graphviz";
# use rev as tags have disappeared before # use rev as tags have disappeared before
rev = "ca43e4c6a217650447e2928c2e9cb493c73ebd7d"; rev = "24cf7232bb8728823466e0ef536862013893e567";
sha256 = "1psfgr8y4hh9yyzl04f7xbqb2y9k1xbja051j6b06q9dx7bmkmky"; sha256 = "sha256-qqrpCJ9WP8wadupp4YRJMMaSCeFIDuFDQvEOpbG/wGM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -88,8 +88,8 @@ stdenv.mkDerivation {
postFixup = optionalString withXorg '' postFixup = optionalString withXorg ''
substituteInPlace $out/bin/dotty --replace '`which lefty`' $out/bin/lefty substituteInPlace $out/bin/dotty --replace '`which lefty`' $out/bin/lefty
substituteInPlace $out/bin/vimdot \ substituteInPlace $out/bin/vimdot \
--replace /usr/bin/vi '$(command -v vi)' \ --replace '"/usr/bin/vi"' '"$(command -v vi)"' \
--replace /usr/bin/vim '$(command -v vim)' \ --replace '"/usr/bin/vim"' '"$(command -v vim)"' \
--replace /usr/bin/vimdot $out/bin/vimdot \ --replace /usr/bin/vimdot $out/bin/vimdot \
''; '';