@@ -1,22 +1,22 @@
11{
2− stdenv, fetchFromGitHub, fetchpatch, standardPatch,
2+ stdenv, fetchFromGitHub,
33 cmake, pkgconfig, lxqt-build-tools,
44 qtbase, qttools, qtx11extras, qtsvg, libdbusmenu, kwindowsystem, solid,
5− kguiaddons, liblxqt, libqtxdg, lxqt-common, lxqt-globalkeys, libsysstat,
5+ kguiaddons, liblxqt, libqtxdg, lxqt-globalkeys, libsysstat,
66 xorg, libstatgrab, lm_sensors, libpulseaudio, alsaLib, menu-cache,
7− lxmenu-data
7+ lxmenu-data, pcre
88}:
99
1010stdenv.mkDerivation rec {
1111 name = "${pname}-${version}";
1212 pname = "lxqt-panel";
13− version = "0.11.1";
13+ version = "0.12.0";
1414
15− srcs = fetchFromGitHub {
15+ src = fetchFromGitHub {
1616 owner = "lxde";
1717 repo = pname;
1818 rev = version;
19− sha256 = "097rivly61i99v0w9a3dgbwbc4c5x9nh3jl0n94dix1qgd4w983y";
19+ sha256 = "01xmnb17jpydyfvxwaa6kymzdasnyd94z62gjah8y4pzsmykcr4x";
2020 };
2121
2222 nativeBuildInputs = [
@@ -36,7 +36,6 @@ stdenv.mkDerivation rec {
3636 kguiaddons
3737 liblxqt
3838 libqtxdg
39− lxqt-common
4039 lxqt-globalkeys
4140 libsysstat
4241 xorg.libpthreadstubs
@@ -47,19 +46,19 @@ stdenv.mkDerivation rec {
4746 alsaLib
4847 menu-cache
4948 lxmenu-data
50− ];
51−
52− patches = [
53− (fetchpatch {
54− url = https://github.com/lxde/lxqt-panel/commit/ec62109e0fa678875a9b10fc6f1975267432712d.patch;
55− name = "fix-compile-explicit-keyword.patch";
56− sha256 = "1grda0dw175kbsfq90lr5qaf79akwikzxw85jhd5f339nnramp81";
57− })
49+ pcre
5850 ];
5951
6052 cmakeFlags = [ "-DPULL_TRANSLATIONS=NO" ];
6153
62− postPatch = standardPatch;
54+ postPatch = ''
55+ for dir in autostart menu; do
56+ substituteInPlace $dir/CMakeLists.txt \
57+ --replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg"
58+ done
59+ substituteInPlace panel/CMakeLists.txt \
60+ --replace "DESTINATION \''${LXQT_ETC_XDG_DIR}" "DESTINATION etc/xdg"
61+ '';
6362
6463 meta = with stdenv.lib; {
6564 description = "The LXQt desktop panel";