nixpkgs/pkgs/desktops/lumina/default.nix

70 lines
1.7 KiB
Nix
Raw Normal View History

2017-02-25 14:15:21 +01:00
{ stdenv, fetchFromGitHub, fluxbox, xscreensaver, desktop_file_utils, numlockx,
2017-06-02 17:40:19 +02:00
xorg, qtbase, qtsvg, qtmultimedia, qtx11extras, qmake, qttools, oxygen-icons5
2016-11-01 20:06:39 +01:00
}:
stdenv.mkDerivation rec {
name = "lumina-${version}";
2017-01-25 10:11:09 +01:00
version = "1.2.0-p1";
2016-11-01 20:06:39 +01:00
src = fetchFromGitHub {
owner = "trueos";
repo = "lumina";
rev = "v${version}";
2017-01-25 10:11:09 +01:00
sha256 = "0k16lcpxp9avwkadbbyqficd1wxsmwian5ji38wyax76v22yq7p6";
2016-11-01 20:06:39 +01:00
};
nativeBuildInputs = [
2017-06-02 17:40:19 +02:00
qmake
2017-02-25 14:15:21 +01:00
qttools
2016-11-01 20:06:39 +01:00
];
buildInputs = [
xorg.libxcb
xorg.xcbutilwm
xorg.xcbutilimage
2017-02-25 14:15:21 +01:00
qtbase
qtsvg
qtmultimedia
qtx11extras
oxygen-icons5
2016-11-01 20:06:39 +01:00
fluxbox
xscreensaver
desktop_file_utils
numlockx
];
patches = [
./avoid-absolute-path-on-sessdir.patch
./LuminaOS-NixOS.cpp.patch
];
prePatch = ''
# Copy Gentoo setup as NixOS setup and then patch it
# TODO: write a complete NixOS setup?
cp -a src-qt5/core/libLumina/LuminaOS-Gentoo.cpp src-qt5/core/libLumina/LuminaOS-NixOS.cpp
'';
postPatch = ''
# 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"
'';
2016-11-09 12:07:55 +01:00
qmakeFlags = [ "LINUX_DISTRO=NixOS" "CONFIG+=WITH_I18N" ];
2016-11-01 20:06:39 +01:00
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A lightweight, portable desktop environment";
longDescription = ''
The Lumina Desktop Environment is a lightweight system interface
that is designed for use on any Unix-like operating system. It
is based on QT5.
'';
homepage = https://lumina-desktop.org;
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}