fbpanel: fix build by adding gdk-pixbuf-xlib

This commit is contained in:
Santiago Calcagno 2020-10-04 20:50:59 +00:00
parent 8524c682f6
commit 104017def0

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig
, libX11, libXmu, libXpm, gtk2, libpng, libjpeg, libtiff, librsvg
, libX11, libXmu, libXpm, gtk2, libpng, libjpeg, libtiff, librsvg, gdk-pixbuf, gdk-pixbuf-xlib
}:
stdenv.mkDerivation rec {
@ -10,10 +10,15 @@ stdenv.mkDerivation rec {
sha256 = "e14542cc81ea06e64dd4708546f5fd3f5e01884c3e4617885c7ef22af8cf3965";
};
buildInputs =
[ pkgconfig libX11 libXmu libXpm gtk2 libpng libjpeg libtiff librsvg ];
[ pkgconfig libX11 libXmu libXpm gtk2 libpng libjpeg libtiff librsvg gdk-pixbuf gdk-pixbuf-xlib.dev ];
preConfigure = "patchShebangs .";
postConfigure = ''
substituteInPlace config.mk \
--replace "CFLAGSX =" "CFLAGSX = -I${gdk-pixbuf-xlib.dev}/include/gdk-pixbuf-2.0"
'';
NIX_LDFLAGS="-lX11";
meta = with stdenv.lib; {