mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
Readding old Graphviz: I need it for some graph program that relies on its way of grid snapping.
svn path=/nixpkgs/trunk/; revision=22483
This commit is contained in:
parent
d66e8e5d73
commit
9fe4caf066
31
pkgs/tools/graphics/graphviz/2.0.nix
Normal file
31
pkgs/tools/graphics/graphviz/2.0.nix
Normal file
@ -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/;
|
||||
};
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user