diff options
author | Will Dietz <w@wdtz.org> | 2019-09-18 01:45:08 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2019-10-07 17:58:09 -0500 |
commit | b906513cf59ac2d9fb2dc18ee71daaa1665062f8 (patch) | |
tree | e7308a2b12bfa4d4b6de37c0f98d1d4c72a1a005 /pkgs/tools/graphics/graphviz/base.nix | |
parent | f760f0ef486815bf7d7223773addc35952d270b6 (diff) | |
download | nixpkgs-b906513cf59ac2d9fb2dc18ee71daaa1665062f8.tar nixpkgs-b906513cf59ac2d9fb2dc18ee71daaa1665062f8.tar.gz nixpkgs-b906513cf59ac2d9fb2dc18ee71daaa1665062f8.tar.bz2 nixpkgs-b906513cf59ac2d9fb2dc18ee71daaa1665062f8.tar.lz nixpkgs-b906513cf59ac2d9fb2dc18ee71daaa1665062f8.tar.xz nixpkgs-b906513cf59ac2d9fb2dc18ee71daaa1665062f8.tar.zst nixpkgs-b906513cf59ac2d9fb2dc18ee71daaa1665062f8.zip |
graphviz: 2.40.1 -> 2.42.2
Little uncertain what's going on re:versions, here's some info: 2.42.0 "Fixes quite a few bugs"[1], which is primary motivation. [1] https://gitlab.com/graphviz/graphviz/blob/stable_release_2.42.0/ChangeLog 2.42.1 has a note in 2.42.2's ChangeLog[2] which is good but also interesting as 2.42.2 doesn't have an entry in its own ChangeLog :). FWIW there are two tags for 2.42.2 but happily they're equivalent. While a bit verbose, the changes between these versions can be looked at using git locally or a URL like one of these: * https://gitlab.com/graphviz/graphviz/compare/stable_release_2.42.0...stable_release_2.42.2 * https://gitlab.com/graphviz/graphviz/compare/stable_release_2.40.1...stable_release_2.42.0 Anyway, looks like a bunch of bugfixes! :)
Diffstat (limited to 'pkgs/tools/graphics/graphviz/base.nix')
-rw-r--r-- | pkgs/tools/graphics/graphviz/base.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/graphviz/base.nix b/pkgs/tools/graphics/graphviz/base.nix index cd2302efd16..700bed237bd 100644 --- a/pkgs/tools/graphics/graphviz/base.nix +++ b/pkgs/tools/graphics/graphviz/base.nix @@ -7,7 +7,7 @@ assert stdenv.isDarwin -> ApplicationServices != null; let - inherit (stdenv.lib) optionals optionalString; + inherit (stdenv.lib) optional optionals optionalString; raw_patch = # https://gitlab.com/graphviz/graphviz/issues/1367 CVE-2018-10196 fetchpatch { @@ -17,11 +17,13 @@ let excludes = ["tests/*"]; # we don't run them and they don't apply }; # the patch needs a small adaption for older versions - patch = if stdenv.lib.versionAtLeast version "2.37" then raw_patch else + patchToUse = if stdenv.lib.versionAtLeast version "2.37" then raw_patch else stdenv.mkDerivation { inherit (raw_patch) name; buildCommand = "sed s/dot_root/agroot/g ${raw_patch} > $out"; }; + # 2.42 has the patch included + patches = optional (stdenv.lib.versionOlder version "2.42") patchToUse; in stdenv.mkDerivation { @@ -52,9 +54,7 @@ stdenv.mkDerivation { "--with-ltdl-include=${libtool}/include" ] ++ stdenv.lib.optional (xorg == null) [ "--without-x" ]; - patches = [ - patch - ]; + inherit patches; postPatch = '' for f in $(find . -name Makefile.in); do |