Merge pull request #88791 from romildo/upd.lumina

nixos/lumina: use xsession provided
This commit is contained in:
José Romildo Malaquias 2020-05-26 20:44:06 -03:00 committed by GitHub
commit d6a534937d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 30 deletions

View File

@ -23,12 +23,9 @@ in
config = mkIf cfg.enable {
services.xserver.desktopManager.session = singleton {
name = "lumina";
start = ''
exec ${pkgs.lumina.lumina}/bin/start-lumina-desktop
'';
};
services.xserver.displayManager.sessionPackages = [
pkgs.lumina.lumina
];
environment.systemPackages =
pkgs.lumina.preRequisitePackages ++

View File

@ -1,18 +1,17 @@
{ stdenv,
mkDerivation,
fetchFromGitHub,
desktop-file-utils,
fluxbox,
numlockx,
qmake,
qtbase,
qtmultimedia,
qtsvg,
qttools,
qtx11extras,
xorg,
xscreensaver,
wrapGAppsHook
{ stdenv
, mkDerivation
, fetchFromGitHub
, fluxbox
, numlockx
, qmake
, qtbase
, qtmultimedia
, qtsvg
, qttools
, qtx11extras
, xorg
, xscreensaver
, wrapGAppsHook
}:
mkDerivation rec {
@ -33,19 +32,18 @@ mkDerivation rec {
];
buildInputs = [
xorg.libxcb
fluxbox # window manager for Lumina DE
numlockx # required for changing state of numlock at login
qtbase
qtmultimedia
qtsvg
qtx11extras
xorg.libXcursor
xorg.libXdamage
xorg.xcbutilwm
xorg.libxcb
xorg.xcbutilimage
qtbase
qtsvg
qtmultimedia
qtx11extras
fluxbox
xorg.xcbutilwm
xscreensaver
desktop-file-utils
numlockx
];
patches = [
@ -67,6 +65,12 @@ mkDerivation rec {
# Fix location of fluxbox styles
substituteInPlace src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.cpp \
--replace 'LOS::AppPrefix()+"share/fluxbox' "\"${fluxbox}/share/fluxbox"
# Fix desktop files
for i in $(grep -lir 'OnlyShowIn=Lumina' src-qt5); do
echo ===== $i
substituteInPlace $i --replace 'OnlyShowIn=Lumina' 'OnlyShowIn=X-Lumina'
done
'';
qmakeFlags = [
@ -75,6 +79,8 @@ mkDerivation rec {
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
];
passthru.providedSessions = [ "Lumina-DE" ];
meta = with stdenv.lib; {
description = "A lightweight, portable desktop environment";
longDescription = ''