2021-02-08 05:14:47 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gettext
|
|
|
|
, m4
|
|
|
|
, intltool
|
|
|
|
, libxmlxx
|
|
|
|
, keybinder
|
|
|
|
, gtk2
|
|
|
|
, libX11
|
|
|
|
, libfm
|
2021-06-23 19:22:04 +01:00
|
|
|
, libwnck2
|
2021-02-08 05:14:47 +00:00
|
|
|
, libXmu
|
|
|
|
, libXpm
|
|
|
|
, cairo
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gdk-pixbuf-xlib
|
|
|
|
, menu-cache
|
|
|
|
, lxmenu-data
|
|
|
|
, wirelesstools
|
|
|
|
, curl
|
2021-06-10 03:57:09 +01:00
|
|
|
, supportAlsa ? false, alsa-lib
|
2017-05-02 02:45:27 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-08 05:14:47 +00:00
|
|
|
pname = "lxpanel";
|
2021-02-07 17:27:10 +00:00
|
|
|
version = "0.10.1";
|
2017-05-02 02:45:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-08 05:14:47 +00:00
|
|
|
url = "mirror://sourceforge/lxde/${pname}-${version}.tar.xz";
|
2021-02-07 17:27:10 +00:00
|
|
|
sha256 = "sha256-HjGPV9fja2HCOlBNA9JDDHja0ULBgERRBh8bPqVEHug=";
|
2017-05-02 02:45:27 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:21:50 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gettext m4 intltool libxmlxx ];
|
2017-05-02 02:45:27 +01:00
|
|
|
buildInputs = [
|
2021-02-08 05:14:47 +00:00
|
|
|
keybinder
|
|
|
|
gtk2
|
|
|
|
libX11
|
|
|
|
libfm
|
2021-06-23 19:22:04 +01:00
|
|
|
libwnck2
|
2021-02-08 05:14:47 +00:00
|
|
|
libXmu
|
|
|
|
libXpm
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
gdk-pixbuf-xlib.dev
|
|
|
|
menu-cache
|
|
|
|
lxmenu-data
|
|
|
|
m4
|
|
|
|
wirelesstools
|
|
|
|
curl
|
2021-06-10 03:57:09 +01:00
|
|
|
] ++ lib.optional supportAlsa alsa-lib;
|
2017-05-02 02:45:27 +01:00
|
|
|
|
2020-09-09 23:25:54 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/Makefile.in \
|
|
|
|
--replace "@PACKAGE_CFLAGS@" "@PACKAGE_CFLAGS@ -I${gdk-pixbuf-xlib.dev}/include/gdk-pixbuf-2.0"
|
|
|
|
substituteInPlace plugins/Makefile.in \
|
|
|
|
--replace "@PACKAGE_CFLAGS@" "@PACKAGE_CFLAGS@ -I${gdk-pixbuf-xlib.dev}/include/gdk-pixbuf-2.0"
|
|
|
|
'';
|
|
|
|
|
2021-02-08 05:14:47 +00:00
|
|
|
meta = with lib; {
|
2017-05-02 02:45:27 +01:00
|
|
|
description = "Lightweight X11 desktop panel for LXDE";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://lxde.org/";
|
2021-02-08 05:14:47 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.ryneeverett ];
|
|
|
|
platforms = platforms.linux;
|
2017-05-02 02:45:27 +01:00
|
|
|
};
|
|
|
|
}
|