aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/desktops/lxde
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/desktops/lxde')
-rw-r--r--nixpkgs/pkgs/desktops/lxde/core/lxappearance/default.nix36
-rw-r--r--nixpkgs/pkgs/desktops/lxde/core/lxpanel/default.nix11
2 files changed, 35 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/desktops/lxde/core/lxappearance/default.nix b/nixpkgs/pkgs/desktops/lxde/core/lxappearance/default.nix
index ea64b75214f..b838c19afc8 100644
--- a/nixpkgs/pkgs/desktops/lxde/core/lxappearance/default.nix
+++ b/nixpkgs/pkgs/desktops/lxde/core/lxappearance/default.nix
@@ -1,26 +1,42 @@
-{ stdenv, fetchurl, intltool, pkgconfig, libX11, gtk2, withGtk3 ? false, gtk3 }:
+{ stdenv
+, fetchurl
+, intltool
+, pkg-config
+, libX11
+, gtk2
+, gtk3
+, withGtk3 ? true
+}:
stdenv.mkDerivation rec {
name = "lxappearance-0.6.3";
- src = fetchurl{
+ src = fetchurl {
url = "mirror://sourceforge/project/lxde/LXAppearance/${name}.tar.xz";
sha256 = "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj";
};
- nativeBuildInputs = [ pkgconfig intltool ];
+ nativeBuildInputs = [
+ pkg-config
+ intltool
+ ];
- buildInputs = [ libX11 (if withGtk3 then gtk3 else gtk2) ];
+ buildInputs = [
+ libX11
+ (if withGtk3 then gtk3 else gtk2)
+ ];
- patches = [ ./lxappearance-0.6.3-xdg.system.data.dirs.patch ];
+ patches = [
+ ./lxappearance-0.6.3-xdg.system.data.dirs.patch
+ ];
configureFlags = stdenv.lib.optional withGtk3 "--enable-gtk3";
- meta = {
- description = "A lightweight program for configuring the theme and fonts of gtk applications";
+ meta = with stdenv.lib; {
+ description = "Lightweight program for configuring the theme and fonts of gtk applications";
homepage = "https://lxde.org/";
- maintainers = [ stdenv.lib.maintainers.hinton ];
- platforms = stdenv.lib.platforms.linux;
- license = stdenv.lib.licenses.gpl2;
+ license = licenses.gpl2;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ hinton romildo ];
};
}
diff --git a/nixpkgs/pkgs/desktops/lxde/core/lxpanel/default.nix b/nixpkgs/pkgs/desktops/lxde/core/lxpanel/default.nix
index 20b5a35fc30..da146764c32 100644
--- a/nixpkgs/pkgs/desktops/lxde/core/lxpanel/default.nix
+++ b/nixpkgs/pkgs/desktops/lxde/core/lxpanel/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gettext, m4, intltool, libxmlxx, keybinder
-, gtk2, libX11, libfm, libwnck, libXmu, libXpm, cairo, gdk-pixbuf
+, gtk2, libX11, libfm, libwnck, libXmu, libXpm, cairo, gdk-pixbuf, gdk-pixbuf-xlib
, menu-cache, lxmenu-data, wirelesstools
, supportAlsa ? false, alsaLib
}:
@@ -14,10 +14,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig gettext m4 intltool libxmlxx ];
buildInputs = [
- keybinder gtk2 libX11 libfm libwnck libXmu libXpm cairo gdk-pixbuf
+ keybinder gtk2 libX11 libfm libwnck libXmu libXpm cairo gdk-pixbuf gdk-pixbuf-xlib.dev
menu-cache lxmenu-data m4 wirelesstools
] ++ stdenv.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 = {
description = "Lightweight X11 desktop panel for LXDE";
homepage = "https://lxde.org/";