3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/lxde/core/lxpanel/default.nix

69 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, pkg-config
, gettext
, m4
, intltool
, libxmlxx
, keybinder
, gtk2
, libX11
, libfm
, libwnck
, libXmu
, libXpm
, cairo
, gdk-pixbuf
, gdk-pixbuf-xlib
, menu-cache
, lxmenu-data
, wirelesstools
, curl
, supportAlsa ? false, alsaLib
}:
stdenv.mkDerivation rec {
pname = "lxpanel";
2021-02-07 17:27:10 +00:00
version = "0.10.1";
src = fetchurl {
url = "mirror://sourceforge/lxde/${pname}-${version}.tar.xz";
2021-02-07 17:27:10 +00:00
sha256 = "sha256-HjGPV9fja2HCOlBNA9JDDHja0ULBgERRBh8bPqVEHug=";
};
2021-01-17 02:21:50 +00:00
nativeBuildInputs = [ pkg-config gettext m4 intltool libxmlxx ];
buildInputs = [
keybinder
gtk2
libX11
libfm
libwnck
libXmu
libXpm
cairo
gdk-pixbuf
gdk-pixbuf-xlib.dev
menu-cache
lxmenu-data
m4
wirelesstools
curl
2021-01-15 13:21:58 +00:00
] ++ lib.optional supportAlsa alsaLib;
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"
'';
meta = with lib; {
description = "Lightweight X11 desktop panel for LXDE";
homepage = "https://lxde.org/";
license = licenses.gpl2Plus;
maintainers = [ maintainers.ryneeverett ];
platforms = platforms.linux;
};
}