2017-02-25 15:44:29 +00:00
|
|
|
{
|
2017-11-02 02:29:12 +00:00
|
|
|
stdenv, fetchFromGitHub,
|
2017-02-25 15:44:29 +00:00
|
|
|
cmake, pkgconfig, lxqt-build-tools,
|
|
|
|
qtbase, qttools, qtx11extras, qtsvg, libdbusmenu, kwindowsystem, solid,
|
2017-11-02 01:57:11 +00:00
|
|
|
kguiaddons, liblxqt, libqtxdg, lxqt-globalkeys, libsysstat,
|
2017-02-25 15:44:29 +00:00
|
|
|
xorg, libstatgrab, lm_sensors, libpulseaudio, alsaLib, menu-cache,
|
2018-03-28 14:24:02 +01:00
|
|
|
lxmenu-data, pcre, libXdamage
|
2017-02-25 15:44:29 +00:00
|
|
|
}:
|
2016-10-03 23:03:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lxqt-panel";
|
2019-02-05 23:13:47 +00:00
|
|
|
version = "0.14.0";
|
2016-10-03 23:03:59 +01:00
|
|
|
|
2017-11-02 01:57:11 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-05-22 02:24:38 +01:00
|
|
|
owner = "lxqt";
|
2016-10-03 23:03:59 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-02-05 23:13:47 +00:00
|
|
|
sha256 = "0jr7ylf6d35m0ckn884arjk4armknnw8iyph00gcphn5bqycbn8l";
|
2016-10-03 23:03:59 +01:00
|
|
|
};
|
|
|
|
|
2017-02-19 13:53:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
2017-02-25 15:44:29 +00:00
|
|
|
lxqt-build-tools
|
2017-02-19 13:53:59 +00:00
|
|
|
];
|
2016-10-03 23:03:59 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2017-02-25 15:44:29 +00:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
qtsvg
|
|
|
|
libdbusmenu
|
|
|
|
kwindowsystem
|
|
|
|
solid
|
|
|
|
kguiaddons
|
|
|
|
liblxqt
|
|
|
|
libqtxdg
|
|
|
|
lxqt-globalkeys
|
|
|
|
libsysstat
|
2016-10-03 23:03:59 +01:00
|
|
|
xorg.libpthreadstubs
|
|
|
|
xorg.libXdmcp
|
|
|
|
libstatgrab
|
|
|
|
lm_sensors
|
|
|
|
libpulseaudio
|
|
|
|
alsaLib
|
|
|
|
menu-cache
|
|
|
|
lxmenu-data
|
2017-11-02 01:57:11 +00:00
|
|
|
pcre
|
2018-03-28 14:24:02 +01:00
|
|
|
libXdamage
|
2017-03-26 20:17:42 +01:00
|
|
|
];
|
|
|
|
|
2017-11-02 01:57:11 +00:00
|
|
|
postPatch = ''
|
|
|
|
for dir in autostart menu; do
|
|
|
|
substituteInPlace $dir/CMakeLists.txt \
|
|
|
|
--replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg"
|
|
|
|
done
|
|
|
|
substituteInPlace panel/CMakeLists.txt \
|
|
|
|
--replace "DESTINATION \''${LXQT_ETC_XDG_DIR}" "DESTINATION etc/xdg"
|
2019-02-05 23:13:47 +00:00
|
|
|
|
|
|
|
for f in cmake/BuildPlugin.cmake panel/CMakeLists.txt; do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "\''${LXQT_TRANSLATIONS_DIR}" "''${out}/share/lxqt/translations"
|
|
|
|
done
|
2017-11-02 01:57:11 +00:00
|
|
|
'';
|
2016-10-03 23:03:59 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The LXQt desktop panel";
|
2018-05-22 02:24:38 +01:00
|
|
|
homepage = https://github.com/lxqt/lxqt-panel;
|
2016-10-03 23:03:59 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = with platforms; unix;
|
2017-02-19 13:53:59 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2016-10-03 23:03:59 +01:00
|
|
|
};
|
|
|
|
}
|