nixpkgs/pkgs/desktops/xfce/core/xfce4-session.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, gtk, polkit
2018-03-12 23:55:30 +01:00
, libxfce4util, libxfce4ui, xfce4-panel, libwnck, dbus-glib, xfconf, libglade, xorg
, hicolor-icon-theme
}:
let
p_name = "xfce4-session";
2015-03-12 22:46:47 +01:00
ver_maj = "4.12";
ver_min = "1";
in
stdenv.mkDerivation rec {
name = "${p_name}-${ver_maj}.${ver_min}";
src = fetchurl {
url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/${name}.tar.bz2";
sha256 = "97d7f2a2d0af7f3623b68d1f04091e02913b28f9555dab8b0d26c8a1299d08fd";
};
patches = [
# Fix "lock screen" not working for light-locker
./xfce4-light-locker.patch
];
buildInputs =
[ pkgconfig intltool gtk libxfce4util libxfce4ui libwnck dbus-glib
2018-03-12 23:55:30 +01:00
xfconf xfce4-panel libglade xorg.iceauth xorg.libSM
polkit hicolor-icon-theme
]; #TODO: upower-glib, gconf (assistive?), gnome keyring
preBuild = ''
sed '/^PATH=/d' -i scripts/xflock4
sed '/^export PATH$/d' -i scripts/xflock4
'';
configureFlags = [ "--with-xsession-prefix=$(out)" ];
meta = with stdenv.lib; {
homepage = http://www.xfce.org/projects/xfce4-session;
description = "Session manager for Xfce";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.eelco ];
};
}