Skip to content

Commit

Permalink
Merge pull request #152363 from romildo/upd.lumina
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 1, 2022
2 parents eebef8a + 8d29fde commit 1190803
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 28 deletions.
6 changes: 0 additions & 6 deletions nixos/modules/services/x11/desktop-managers/lumina.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,5 @@ in
"/share"
];

security.wrappers.lumina-checkpass-wrapped = {
source = "${pkgs.lumina.lumina}/bin/lumina-checkpass";
owner = "root";
group = "root";
};

};
}
11 changes: 0 additions & 11 deletions pkgs/desktops/lumina/lumina/avoid-absolute-path-on-sessdir.patch

This file was deleted.

25 changes: 14 additions & 11 deletions pkgs/desktops/lumina/lumina/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
, mkDerivation
, fetchFromGitHub
, fluxbox
, hicolor-icon-theme
, libarchive
, linux-pam
, numlockx
, qmake
, qtbase
Expand All @@ -18,13 +18,13 @@

mkDerivation rec {
pname = "lumina";
version = "1.6.1";
version = "1.6.2";

src = fetchFromGitHub {
owner = "lumina-desktop";
repo = pname;
rev = "v${version}";
sha256 = "0wc8frhw1yv07n05r33c4zilq5lgn5gw07a9n37g6nyn5sgrbp4f";
sha256 = "1llr65gilcf0k88f9mbwzlalqwdnjy4nv2jq7w154z0xmd6iarfq";
};

nativeBuildInputs = [
Expand All @@ -35,8 +35,8 @@ mkDerivation rec {

buildInputs = [
fluxbox # window manager for Lumina DE
hicolor-icon-theme
libarchive # make `bsdtar` available for lumina-archiver
linux-pam
numlockx # required for changing state of numlock at login
qtbase
qtmultimedia
Expand All @@ -50,6 +50,8 @@ mkDerivation rec {
xscreensaver
];

dontDropIconThemeCache = true;

patches = [
./LuminaOS-NixOS.cpp.patch
];
Expand All @@ -65,10 +67,6 @@ mkDerivation rec {
substituteInPlace src-qt5/OS-detect.pri \
--replace L_SESSDIR=/usr/share/xsessions '#L_SESSDIR=/usr/share/xsessions'
# Do not set special permission
substituteInPlace src-qt5/core/lumina-checkpass/lumina-checkpass.pro \
--replace "chmod 4555" "chmod 555"
# Fix plugin dir
substituteInPlace src-qt5/core/lumina-theme-engine/lthemeengine.pri \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
Expand All @@ -81,9 +79,14 @@ mkDerivation rec {
substituteInPlace src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp \
--replace '"bsdtar"' '"${lib.getBin libarchive}/bin/bsdtar"'
# Fix desktop files
for i in $(grep -lir 'OnlyShowIn=Lumina' src-qt5); do
substituteInPlace $i --replace 'OnlyShowIn=Lumina' 'OnlyShowIn=X-Lumina'
# Fix installation path of lumina-sudo
substituteInPlace src-qt5/desktop-utils/lumina-sudo/lumina-sudo.pro \
--replace "/usr/bin" "$out/bin"
'';

postInstall = ''
for theme in lumina-icons material-design-{dark,light}; do
gtk-update-icon-cache $out/share/icons/$theme
done
'';

Expand Down

0 comments on commit 1190803

Please sign in to comment.