mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-11 15:37:13 +00:00
graphviz: Add a no x dependency version
This commit is contained in:
parent
f94d0c3aa7
commit
47f9a276c3
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libpng, libjpeg, expat, libXaw
|
{ stdenv, fetchurl, pkgconfig, libpng, libjpeg, expat, libXaw
|
||||||
, yacc, libtool, fontconfig, pango, gd, xlibs, gts, gettext, cairo
|
, yacc, libtool, fontconfig, pango, gd, xlibs, gts, libdevil, gettext, cairo
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -14,12 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
patches = [ ./0001-vimdot-lookup-vim-in-PATH.patch ];
|
patches = [ ./0001-vimdot-lookup-vim-in-PATH.patch ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig libpng libjpeg expat libXaw yacc libtool fontconfig
|
[ pkgconfig libpng libjpeg expat yacc libtool fontconfig gd gts libdevil
|
||||||
pango gd gts
|
] ++ stdenv.lib.optionals (xlibs != null) [ xlibs.xlibs xlibs.libXrender pango libXaw ]
|
||||||
] ++ stdenv.lib.optionals (xlibs != null) [ xlibs.xlibs xlibs.libXrender ]
|
|
||||||
++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") gettext;
|
++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") gettext;
|
||||||
|
|
||||||
CPPFLAGS = stdenv.lib.optionalString (stdenv.system == "x86_64-darwin") "-I${cairo}/include/cairo";
|
CPPFLAGS = stdenv.lib.optionalString (xlibs != null && stdenv.system == "x86_64-darwin")
|
||||||
|
"-I${cairo}/include/cairo";
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--with-pngincludedir=${libpng}/include"
|
[ "--with-pngincludedir=${libpng}/include"
|
||||||
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# "command -v" is POSIX, "which" is not
|
# "command -v" is POSIX, "which" is not
|
||||||
postInstall = ''
|
postInstall = stdenv.lib.optionalString (xlibs != null) ''
|
||||||
sed -i 's|`which lefty`|"'$out'/bin/lefty"|' $out/bin/dotty
|
sed -i 's|`which lefty`|"'$out'/bin/lefty"|' $out/bin/dotty
|
||||||
sed -i 's|which|command -v|' $out/bin/vimdot
|
sed -i 's|which|command -v|' $out/bin/vimdot
|
||||||
'';
|
'';
|
||||||
|
@ -1438,6 +1438,10 @@ let
|
|||||||
|
|
||||||
graphviz = callPackage ../tools/graphics/graphviz { };
|
graphviz = callPackage ../tools/graphics/graphviz { };
|
||||||
|
|
||||||
|
graphviz-nox = callPackage ../tools/graphics/graphviz {
|
||||||
|
xlibs = null;
|
||||||
|
};
|
||||||
|
|
||||||
/* Readded by Michael Raskin. There are programs in the wild
|
/* 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
|
* that do want 2.0 but not 2.22. Please give a day's notice for
|
||||||
* objections before removal. The feature is integer coordinates
|
* objections before removal. The feature is integer coordinates
|
||||||
|
Loading…
Reference in New Issue
Block a user