3
0
Fork 0
forked from mirrors/nixpkgs

lumina: 1.3.0 -> 1.4.0-p1

This commit is contained in:
José Romildo Malaquias 2017-11-24 18:04:26 -02:00
parent 3ad0845fb0
commit 0345e5d576

View file

@ -1,21 +1,23 @@
{ stdenv, fetchFromGitHub, fluxbox, xscreensaver, desktop_file_utils, numlockx, { stdenv, fetchFromGitHub, fluxbox, xscreensaver, desktop_file_utils,
xorg, qtbase, qtsvg, qtmultimedia, qtx11extras, qmake, qttools numlockx, xorg, qtbase, qtsvg, qtmultimedia, qtx11extras, qmake,
qttools, poppler_qt5, wrapGAppsHook
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "lumina-${version}"; name = "lumina-${version}";
version = "1.3.0"; version = "1.4.0-p1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "trueos"; owner = "trueos";
repo = "lumina"; repo = "lumina";
rev = "v${version}"; rev = "v${version}";
sha256 = "13kwlhv2qscrn52xvx0n1sqbl96fkcb5r1ixa0wazflx8dfl9ndn"; sha256 = "0jin0a2s6pjbpw7w1bz67dgqp0xlpw1a7nh8zv0qwdf954zczanp";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
qmake qmake
qttools qttools
wrapGAppsHook
]; ];
buildInputs = [ buildInputs = [
@ -26,6 +28,7 @@ stdenv.mkDerivation rec {
qtsvg qtsvg
qtmultimedia qtmultimedia
qtx11extras qtx11extras
poppler_qt5
fluxbox fluxbox
xscreensaver xscreensaver
desktop_file_utils desktop_file_utils
@ -44,12 +47,24 @@ stdenv.mkDerivation rec {
''; '';
postPatch = '' postPatch = ''
# Fix location of poppler-qt5.h
substituteInPlace src-qt5/desktop-utils/lumina-pdf/mainUI.h \
--replace '#include <poppler-qt5.h>' '#include <poppler/qt5/poppler-qt5.h>'
# Fix plugin dir
substituteInPlace src-qt5/core/lumina-theme-engine/lthemeengine.pri \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
# 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"
''; '';
qmakeFlags = [ "LINUX_DISTRO=NixOS" "CONFIG+=WITH_I18N" ]; qmakeFlags = [
"LINUX_DISTRO=NixOS"
"CONFIG+=WITH_I18N"
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
];
enableParallelBuilding = true; enableParallelBuilding = true;