monotoneViz: use xorg.* packages directly instead of xlibsWrapper indirection

Validated as no change in `out` output with `diffoscope`.
This commit is contained in:
Sergei Trofimovich 2022-12-10 14:49:04 +00:00
parent a5717f4f9a
commit 15c39787d8
2 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
{ lib, stdenv, fetchurl, ocamlPackages, gnome2, pkg-config, makeWrapper, glib
, libtool, libpng, bison, expat, fontconfig, gd, pango, libjpeg, libwebp, xlibsWrapper, libXaw
, libtool, libpng, bison, expat, fontconfig, gd, pango, libjpeg, libwebp, libX11, libXaw
}:
# We need an old version of Graphviz for format compatibility reasons.
# This version is vulnerable, but monotone-viz will never feed it bad input.
let graphviz_2_0 = import ./graphviz-2.0.nix {
inherit lib stdenv fetchurl pkg-config xlibsWrapper libpng libjpeg expat libXaw
inherit lib stdenv fetchurl pkg-config libX11 libpng libjpeg expat libXaw
bison libtool fontconfig pango gd libwebp;
}; in
let inherit (gnome2) libgnomecanvas; in

View File

@ -2,7 +2,7 @@
, stdenv
, fetchurl
, pkg-config
, xlibsWrapper
, libX11
, libpng
, libjpeg
, expat
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xlibsWrapper
libX11
libpng
libjpeg
expat
@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
"--with-ltdl-include=${libtool}/include"
"--with-ltdl-lib=${libtool.lib}/lib"
]
++ lib.optional (xlibsWrapper == null) "--without-x";
++ lib.optional (libX11 == null) "--without-x";
meta = {
description = "A program for visualising graphs";