2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2020-10-04 20:50:59 +00:00
|
|
|
, libX11, libXmu, libXpm, gtk2, libpng, libjpeg, libtiff, librsvg, gdk-pixbuf, gdk-pixbuf-xlib
|
2015-04-02 12:59:34 +00:00
|
|
|
}:
|
2010-07-29 18:55:16 +00:00
|
|
|
|
2015-04-02 12:59:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fbpanel";
|
2015-04-02 12:59:34 +00:00
|
|
|
version = "6.1";
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/fbpanel/${pname}-${version}.tbz2";
|
2015-04-02 12:59:34 +00:00
|
|
|
sha256 = "e14542cc81ea06e64dd4708546f5fd3f5e01884c3e4617885c7ef22af8cf3965";
|
2010-11-03 21:57:42 +00:00
|
|
|
};
|
2022-09-25 02:49:25 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2015-04-02 12:59:34 +00:00
|
|
|
buildInputs =
|
2022-09-25 02:49:25 +00:00
|
|
|
[ libX11 libXmu libXpm gtk2 libpng libjpeg libtiff librsvg gdk-pixbuf gdk-pixbuf-xlib.dev ];
|
2010-11-03 21:57:42 +00:00
|
|
|
|
2015-04-02 12:59:34 +00:00
|
|
|
preConfigure = "patchShebangs .";
|
2010-11-03 21:57:42 +00:00
|
|
|
|
2020-10-04 20:50:59 +00:00
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace config.mk \
|
|
|
|
--replace "CFLAGSX =" "CFLAGSX = -I${gdk-pixbuf-xlib.dev}/include/gdk-pixbuf-2.0"
|
|
|
|
'';
|
|
|
|
|
2022-06-08 07:26:50 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: plugin.o:(.bss+0x0): multiple definition of `stam'; panel.o:(.bss+0x20): first defined here
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2015-04-02 12:59:34 +00:00
|
|
|
NIX_LDFLAGS="-lX11";
|
2010-11-03 21:57:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-11-04 10:47:24 +00:00
|
|
|
description = "A stand-alone panel";
|
2015-04-02 12:59:34 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-25 22:04:57 +00:00
|
|
|
platforms = platforms.linux;
|
2018-09-08 13:28:25 +00:00
|
|
|
license = licenses.mit;
|
2010-11-03 21:57:42 +00:00
|
|
|
};
|
2015-04-02 12:59:34 +00:00
|
|
|
|
2010-11-03 21:57:42 +00:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "fbpanel.sourceforge.net";
|
|
|
|
};
|
|
|
|
};
|
2015-04-02 12:59:34 +00:00
|
|
|
}
|