···11+{ stdenv, fetchurl, pkgconfig, libpng, libjpeg, expat, libXaw
22+, yacc, libtool, fontconfig, pango, gd, xlibs, gts, gettext, cairo
33+}:
44+55+stdenv.mkDerivation rec {
66+ version = "2.32.0";
77+ name = "graphviz-${version}";
88+99+ src = fetchurl {
1010+ url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/${name}.tar.gz";
1111+ sha256 = "0ym7lw3xnkcgbk32vfmm3329xymca60gzn90rq6dv8887qqv4lyq";
1212+ };
1313+1414+ buildInputs =
1515+ [ pkgconfig libpng libjpeg expat libXaw yacc libtool fontconfig
1616+ pango gd gts
1717+ ] ++ stdenv.lib.optionals (xlibs != null) [ xlibs.xlibs xlibs.libXrender ]
1818+ ++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") gettext;
1919+2020+ CPPFLAGS = stdenv.lib.optionalString (stdenv.system == "x86_64-darwin") "-I${cairo}/include/cairo";
2121+2222+ configureFlags =
2323+ [ "--with-pngincludedir=${libpng}/include"
2424+ "--with-pnglibdir=${libpng}/lib"
2525+ "--with-jpegincludedir=${libjpeg}/include"
2626+ "--with-jpeglibdir=${libjpeg}/lib"
2727+ "--with-expatincludedir=${expat}/include"
2828+ "--with-expatlibdir=${expat}/lib"
2929+ "--with-cgraph=no"
3030+ "--with-sparse=no"
3131+ ]
3232+ ++ stdenv.lib.optional (xlibs == null) "--without-x";
3333+3434+ preBuild = ''
3535+ sed -e 's@am__append_5 *=.*@am_append_5 =@' -i lib/gvc/Makefile
3636+ '';
3737+3838+ # "command -v" is POSIX, "which" is not
3939+ postInstall = ''
4040+ sed -i 's|`which lefty`|"'$out'/bin/lefty"|' $out/bin/dotty
4141+ sed -i 's|which|command -v|' $out/bin/vimdot
4242+ '';
4343+4444+ meta = {
4545+ homepage = "http://www.graphviz.org/";
4646+ description = "Open source graph visualization software";
4747+4848+ longDescription = ''
4949+ Graphviz is open source graph visualization software. Graph
5050+ visualization is a way of representing structural information as
5151+ diagrams of abstract graphs and networks. It has important
5252+ applications in networking, bioinformatics, software engineering,
5353+ database and web design, machine learning, and in visual
5454+ interfaces for other technical domains.
5555+ '';
5656+5757+ hydraPlatforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
5858+ maintainers = with stdenv.lib.maintainers; [ simons bjornfor raskin ];
5959+ inherit version;
6060+ };
6161+}
+10-2
pkgs/top-level/all-packages.nix
···1210121012111211 /* Readded by Michael Raskin. There are programs in the wild
12121212 * that do want 2.0 but not 2.22. Please give a day's notice for
12131213- * objections before removal.
12131213+ * objections before removal. The feature is integer coordinates
12141214 */
12151215 graphviz_2_0 = callPackage ../tools/graphics/graphviz/2.0.nix { };
12161216+12171217+ /* Readded by Michael Raskin. There are programs in the wild
12181218+ * that do want 2.32 but not 2.0 or 2.36. Please give a day's notice for
12191219+ * objections before removal. The feature is libgraph.
12201220+ */
12211221+ graphviz_2_32 = callPackage ../tools/graphics/graphviz/2.32.nix { };
1216122212171223 grive = callPackage ../tools/filesystems/grive {
12181224 json_c = json-c-0-11; # won't configure with 0.12; others are vulnerable
···8984899089858991 gpsd = callPackage ../servers/gpsd { };
8986899289878987- guitone = callPackage ../applications/version-management/guitone { };
89938993+ guitone = callPackage ../applications/version-management/guitone {
89948994+ graphviz = graphviz_2_32;
89958995+ };
8988899689898997 gv = callPackage ../applications/misc/gv { };
89908998