summary refs log tree commit diff
path: root/pkgs/tools/graphics/graphviz/default.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-09-15 11:26:18 +0200
committerVladimír Čunát <vcunat@gmail.com>2015-09-15 12:54:34 +0200
commit88c9f8b574ead01e32c5ee5228679723343cd52c (patch)
tree92196d2055a7842ae40c022581220bace87ab9e1 /pkgs/tools/graphics/graphviz/default.nix
parent21e3ff658ac2d7b7986169f31550aa5f65bb7635 (diff)
downloadnixpkgs-88c9f8b574ead01e32c5ee5228679723343cd52c.tar
nixpkgs-88c9f8b574ead01e32c5ee5228679723343cd52c.tar.gz
nixpkgs-88c9f8b574ead01e32c5ee5228679723343cd52c.tar.bz2
nixpkgs-88c9f8b574ead01e32c5ee5228679723343cd52c.tar.lz
nixpkgs-88c9f8b574ead01e32c5ee5228679723343cd52c.tar.xz
nixpkgs-88c9f8b574ead01e32c5ee5228679723343cd52c.tar.zst
nixpkgs-88c9f8b574ead01e32c5ee5228679723343cd52c.zip
xlibs: replace occurrences by xorg
This seems to have been confusing people, using both xlibs and xorg, etc.
- Avoided renaming local (and different) xlibs binding in gcc*.
- Fixed cases where both xorg and xlibs were used.
Hopefully everything still works as before.
Diffstat (limited to 'pkgs/tools/graphics/graphviz/default.nix')
-rw-r--r--pkgs/tools/graphics/graphviz/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix
index 9c3213c878b..fbf1c114d0a 100644
--- a/pkgs/tools/graphics/graphviz/default.nix
+++ b/pkgs/tools/graphics/graphviz/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchurl, pkgconfig, libpng, libjpeg, expat, libXaw
-, yacc, libtool, fontconfig, pango, gd, xlibs, gts, libdevil, gettext, cairo
+, yacc, libtool, fontconfig, pango, gd, xorg, gts, libdevil, gettext, cairo
 , flex
 }:
 
@@ -22,10 +22,10 @@ stdenv.mkDerivation rec {
 
   buildInputs =
     [ pkgconfig libpng libjpeg expat yacc libtool fontconfig gd gts libdevil flex
-    ] ++ stdenv.lib.optionals (xlibs != null) [ xlibs.xlibsWrapper xlibs.libXrender pango libXaw ]
+    ] ++ stdenv.lib.optionals (xorg != null) [ xorg.xlibsWrapper xorg.libXrender pango libXaw ]
     ++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") gettext;
 
-  CPPFLAGS = stdenv.lib.optionalString (xlibs != null && stdenv.system == "x86_64-darwin")
+  CPPFLAGS = stdenv.lib.optionalString (xorg != null && stdenv.system == "x86_64-darwin")
     "-I${cairo}/include/cairo";
 
   configureFlags =
@@ -36,14 +36,14 @@ stdenv.mkDerivation rec {
       "--with-expatincludedir=${expat}/include"
       "--with-expatlibdir=${expat}/lib"
     ]
-    ++ stdenv.lib.optional (xlibs == null) "--without-x";
+    ++ stdenv.lib.optional (xorg == null) "--without-x";
 
   preBuild = ''
     sed -e 's@am__append_5 *=.*@am_append_5 =@' -i lib/gvc/Makefile
   '';
 
   # "command -v" is POSIX, "which" is not
-  postInstall = stdenv.lib.optionalString (xlibs != null) ''
+  postInstall = stdenv.lib.optionalString (xorg != null) ''
     sed -i 's|`which lefty`|"'$out'/bin/lefty"|' $out/bin/dotty
     sed -i 's|which|command -v|' $out/bin/vimdot
   '';