diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-07-05 19:04:33 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-07-05 19:04:33 +0000 |
commit | 9fe4caf06601e1eb1bada10c567fde35e92a8fe0 (patch) | |
tree | 54c5318843db44e59f8b50b2044c9adb0d3bba85 /pkgs | |
parent | d66e8e5d7372587ea4a748d6f4733883386fd1da (diff) | |
download | nixpkgs-9fe4caf06601e1eb1bada10c567fde35e92a8fe0.tar nixpkgs-9fe4caf06601e1eb1bada10c567fde35e92a8fe0.tar.gz nixpkgs-9fe4caf06601e1eb1bada10c567fde35e92a8fe0.tar.bz2 nixpkgs-9fe4caf06601e1eb1bada10c567fde35e92a8fe0.tar.lz nixpkgs-9fe4caf06601e1eb1bada10c567fde35e92a8fe0.tar.xz nixpkgs-9fe4caf06601e1eb1bada10c567fde35e92a8fe0.tar.zst nixpkgs-9fe4caf06601e1eb1bada10c567fde35e92a8fe0.zip |
Readding old Graphviz: I need it for some graph program that relies on its way of grid snapping.
svn path=/nixpkgs/trunk/; revision=22483
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/graphics/graphviz/2.0.nix | 31 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 11 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/graphviz/2.0.nix b/pkgs/tools/graphics/graphviz/2.0.nix new file mode 100644 index 00000000000..07fbbc967d9 --- /dev/null +++ b/pkgs/tools/graphics/graphviz/2.0.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, pkgconfig, x11, libpng, libjpeg, expat, libXaw +, yacc, libtool, fontconfig, pango, gd +}: + +assert libpng != null && libjpeg != null && expat != null; + +stdenv.mkDerivation rec { + name = "graphviz-2.0"; + + src = fetchurl { + url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/${name}.tar.gz"; + sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c"; + }; + + buildInputs = [pkgconfig x11 libpng libjpeg expat libXaw yacc libtool fontconfig pango gd]; + + configureFlags = + [ "--with-pngincludedir=${libpng}/include" + "--with-pnglibdir=${libpng}/lib" + "--with-jpegincludedir=${libjpeg}/include" + "--with-jpeglibdir=${libjpeg}/lib" + "--with-expatincludedir=${expat}/include" + "--with-expatlibdir=${expat}/lib" + ] + ++ stdenv.lib.optional (x11 == null) "--without-x"; + + meta = { + description = "A program for visualising graphs"; + homepage = http://www.graphviz.org/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d422c8abd4c..f298bfdbd59 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -890,6 +890,17 @@ let inherit (gtkLibs) pango; }; + /* Readded by Michael Raskin. There are programs in the wild + * that do want 2.0 but not 2.22. Please give a day's notice for + * objections before removal. + */ + graphviz_2_0 = import ../tools/graphics/graphviz/2.0.nix { + inherit fetchurl stdenv pkgconfig libpng libjpeg expat x11 yacc + libtool fontconfig gd; + inherit (xlibs) libXaw; + inherit (gtkLibs) pango; + }; + groff = import ../tools/text/groff { inherit fetchurl stdenv perl; ghostscript = null; |