From 0ec317b5f614b234935da08a0f87d93d8d02c852 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 12 Feb 2024 03:39:23 +0000 Subject: graphviz: 9.0.0 -> 10.0.1 --- pkgs/tools/graphics/graphviz/default.nix | 15 +++++++++++---- pkgs/top-level/all-packages.nix | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'pkgs') diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix index 20b296de802c8..6b441fdaf4809 100644 --- a/pkgs/tools/graphics/graphviz/default.nix +++ b/pkgs/tools/graphics/graphviz/default.nix @@ -17,6 +17,7 @@ , bison , xorg , ApplicationServices +, Foundation , python3 , fltk , exiv2 @@ -28,13 +29,13 @@ let in stdenv.mkDerivation rec { pname = "graphviz"; - version = "9.0.0"; + version = "10.0.1"; src = fetchFromGitLab { owner = "graphviz"; repo = "graphviz"; rev = version; - hash = "sha256-lLESaULvHkWJjbKjjG9VIcVInqsDmY1OAAKfjCFDThQ="; + hash = "sha256-KAqJUVqPld3F2FHlUlfbw848GPXXOmyRQkab8jlH1NM="; }; nativeBuildInputs = [ @@ -55,7 +56,7 @@ stdenv.mkDerivation rec { pango bash ] ++ optionals withXorg (with xorg; [ libXrender libXaw libXpm ]) - ++ optionals stdenv.isDarwin [ ApplicationServices ]; + ++ optionals stdenv.isDarwin [ ApplicationServices Foundation ]; hardeningDisable = [ "fortify" ]; @@ -71,7 +72,13 @@ stdenv.mkDerivation rec { doCheck = false; # fails with "Graphviz test suite requires ksh93" which is not in nixpkgs - preAutoreconf = "./autogen.sh"; + preAutoreconf = '' + # components under this directory require a tool `CompileXIB` to build + # and there's no official way to disable this on darwin. + substituteInPlace Makefile.am --replace-fail 'SUBDIRS += macosx' "" + + ./autogen.sh + ''; postFixup = optionalString withXorg '' substituteInPlace $out/bin/vimdot \ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 030d9a21d55f7..7ad7b080adade 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8844,11 +8844,11 @@ with pkgs; ); graphviz = callPackage ../tools/graphics/graphviz { - inherit (darwin.apple_sdk.frameworks) ApplicationServices; + inherit (darwin.apple_sdk.frameworks) ApplicationServices Foundation; }; graphviz-nox = callPackage ../tools/graphics/graphviz { - inherit (darwin.apple_sdk.frameworks) ApplicationServices; + inherit (darwin.apple_sdk.frameworks) ApplicationServices Foundation; withXorg = false; }; -- cgit 1.4.1 From d88514cb2be5defba98354b0341884949a1e8af3 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Mon, 12 Feb 2024 23:47:21 +0000 Subject: graphviz: add more reverse-dependencies to passthru.tests --- pkgs/tools/graphics/graphviz/default.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'pkgs') diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix index 6b441fdaf4809..9a9bd3a0f2b6c 100644 --- a/pkgs/tools/graphics/graphviz/default.nix +++ b/pkgs/tools/graphics/graphviz/default.nix @@ -19,9 +19,12 @@ , ApplicationServices , Foundation , python3 -, fltk -, exiv2 , withXorg ? true + +# for passthru.tests +, exiv2 +, fltk +, graphicsmagick }: let @@ -88,8 +91,17 @@ stdenv.mkDerivation rec { ''; passthru.tests = { - inherit (python3.pkgs) pygraphviz; - inherit fltk exiv2; + inherit (python3.pkgs) + graphviz + pydot + pygraphviz + xdot + ; + inherit + exiv2 + fltk + graphicsmagick + ; }; meta = with lib; { -- cgit 1.4.1