1 { lib, stdenv, fetchurl, pkg-config
2 , libX11, libXmu, libXpm, gtk2, libpng, libjpeg, libtiff, librsvg, gdk-pixbuf, gdk-pixbuf-xlib
5 stdenv.mkDerivation rec {
9 url = "mirror://sourceforge/fbpanel/${pname}-${version}.tbz2";
10 sha256 = "e14542cc81ea06e64dd4708546f5fd3f5e01884c3e4617885c7ef22af8cf3965";
12 nativeBuildInputs = [ pkg-config ];
14 [ libX11 libXmu libXpm gtk2 libpng libjpeg libtiff librsvg gdk-pixbuf gdk-pixbuf-xlib.dev ];
16 preConfigure = "patchShebangs .";
19 substituteInPlace config.mk \
20 --replace "CFLAGSX =" "CFLAGSX = -I${gdk-pixbuf-xlib.dev}/include/gdk-pixbuf-2.0"
23 # Workaround build failure on -fno-common toolchains like upstream
24 # gcc-10. Otherwise build fails as:
25 # ld: plugin.o:(.bss+0x0): multiple definition of `stam'; panel.o:(.bss+0x20): first defined here
26 env.NIX_CFLAGS_COMPILE = "-fcommon";
30 description = "A stand-alone panel";
31 maintainers = with maintainers; [ raskin ];
32 platforms = platforms.linux;
33 license = licenses.mit;
38 downloadPage = "fbpanel.sourceforge.net";