mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #88791 from romildo/upd.lumina
nixos/lumina: use xsession provided
This commit is contained in:
commit
d6a534937d
2 changed files with 33 additions and 30 deletions
|
@ -23,12 +23,9 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
services.xserver.desktopManager.session = singleton {
|
services.xserver.displayManager.sessionPackages = [
|
||||||
name = "lumina";
|
pkgs.lumina.lumina
|
||||||
start = ''
|
];
|
||||||
exec ${pkgs.lumina.lumina}/bin/start-lumina-desktop
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
pkgs.lumina.preRequisitePackages ++
|
pkgs.lumina.preRequisitePackages ++
|
||||||
|
|
|
@ -1,18 +1,17 @@
|
||||||
{ stdenv,
|
{ stdenv
|
||||||
mkDerivation,
|
, mkDerivation
|
||||||
fetchFromGitHub,
|
, fetchFromGitHub
|
||||||
desktop-file-utils,
|
, fluxbox
|
||||||
fluxbox,
|
, numlockx
|
||||||
numlockx,
|
, qmake
|
||||||
qmake,
|
, qtbase
|
||||||
qtbase,
|
, qtmultimedia
|
||||||
qtmultimedia,
|
, qtsvg
|
||||||
qtsvg,
|
, qttools
|
||||||
qttools,
|
, qtx11extras
|
||||||
qtx11extras,
|
, xorg
|
||||||
xorg,
|
, xscreensaver
|
||||||
xscreensaver,
|
, wrapGAppsHook
|
||||||
wrapGAppsHook
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
|
@ -33,19 +32,18 @@ mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
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.libXcursor
|
||||||
xorg.libXdamage
|
xorg.libXdamage
|
||||||
xorg.xcbutilwm
|
xorg.libxcb
|
||||||
xorg.xcbutilimage
|
xorg.xcbutilimage
|
||||||
qtbase
|
xorg.xcbutilwm
|
||||||
qtsvg
|
|
||||||
qtmultimedia
|
|
||||||
qtx11extras
|
|
||||||
fluxbox
|
|
||||||
xscreensaver
|
xscreensaver
|
||||||
desktop-file-utils
|
|
||||||
numlockx
|
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -67,6 +65,12 @@ mkDerivation rec {
|
||||||
# Fix location of fluxbox styles
|
# Fix location of fluxbox styles
|
||||||
substituteInPlace src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.cpp \
|
substituteInPlace src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.cpp \
|
||||||
--replace 'LOS::AppPrefix()+"share/fluxbox' "\"${fluxbox}/share/fluxbox"
|
--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 = [
|
qmakeFlags = [
|
||||||
|
@ -75,6 +79,8 @@ mkDerivation rec {
|
||||||
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
|
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.providedSessions = [ "Lumina-DE" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A lightweight, portable desktop environment";
|
description = "A lightweight, portable desktop environment";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue