diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix index 9bc51c2183b0..bcd13cfff089 100644 --- a/pkgs/tools/graphics/graphviz/default.nix +++ b/pkgs/tools/graphics/graphviz/default.nix @@ -1,31 +1,32 @@ -{ lib -, stdenv -, fetchFromGitLab -, autoreconfHook -, pkg-config -, cairo -, expat -, flex -, fontconfig -, gd -, gts -, libjpeg -, libpng -, libtool -, makeWrapper -, pango -, bash -, bison -, xorg -, ApplicationServices -, Foundation -, python3 -, withXorg ? true +{ + lib, + stdenv, + fetchFromGitLab, + autoreconfHook, + pkg-config, + cairo, + expat, + flex, + fontconfig, + gd, + gts, + libjpeg, + libpng, + libtool, + makeWrapper, + pango, + bash, + bison, + xorg, + ApplicationServices, + Foundation, + python3, + withXorg ? true, -# for passthru.tests -, exiv2 -, fltk -, graphicsmagick + # for passthru.tests + exiv2, + fltk, + graphicsmagick, }: let @@ -51,17 +52,22 @@ stdenv.mkDerivation rec { flex ]; - buildInputs = [ - libpng - libjpeg - expat - fontconfig - gd - gts - pango - bash - ] ++ optionals withXorg (with xorg; [ libXrender ]) - ++ optionals stdenv.hostPlatform.isDarwin [ ApplicationServices Foundation ]; + buildInputs = + [ + libpng + libjpeg + expat + fontconfig + gd + gts + pango + bash + ] + ++ optionals withXorg (with xorg; [ libXrender ]) + ++ optionals stdenv.hostPlatform.isDarwin [ + ApplicationServices + Foundation + ]; hardeningDisable = [ "fortify" ]; @@ -72,8 +78,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - CPPFLAGS = optionalString (withXorg && stdenv.hostPlatform.isDarwin) - "-I${cairo.dev}/include/cairo"; + CPPFLAGS = optionalString (withXorg && stdenv.hostPlatform.isDarwin) "-I${cairo.dev}/include/cairo"; doCheck = false; # fails with "Graphviz test suite requires ksh93" which is not in nixpkgs @@ -96,12 +101,12 @@ stdenv.mkDerivation rec { pydot pygraphviz xdot - ; + ; inherit exiv2 fltk graphicsmagick - ; + ; }; meta = with lib; { @@ -109,6 +114,9 @@ stdenv.mkDerivation rec { description = "Graph visualization tools"; license = licenses.epl10; platforms = platforms.unix; - maintainers = with maintainers; [ bjornfor raskin ]; + maintainers = with maintainers; [ + bjornfor + raskin + ]; }; }