2017-02-25 16:44:29 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, lxqt-build-tools, qtbase, qttools, qtx11extras, qtsvg, kwindowsystem, solid, kidletime, liblxqt, libqtxdg }:
|
2016-10-03 23:59:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "lxqt-powermanagement";
|
2017-11-02 02:57:57 +01:00
|
|
|
version = "0.12.0";
|
2016-10-03 23:59:34 +02:00
|
|
|
|
2017-11-02 02:57:57 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-10-03 23:59:34 +02:00
|
|
|
owner = "lxde";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2017-11-02 02:57:57 +01:00
|
|
|
sha256 = "1fxklxmvjaykdpf0nj6cpgwx4yf52087g25k1zdak9n0l9n7hm8d";
|
2016-10-03 23:59:34 +02:00
|
|
|
};
|
|
|
|
|
2017-02-19 14:28:13 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2017-02-25 16:44:29 +01:00
|
|
|
lxqt-build-tools
|
2017-02-19 14:28:13 +01:00
|
|
|
];
|
2016-10-03 23:59:34 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2017-02-25 16:44:29 +01:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
qtsvg
|
|
|
|
kwindowsystem
|
|
|
|
solid
|
|
|
|
kidletime
|
|
|
|
liblxqt
|
|
|
|
libqtxdg
|
2016-10-03 23:59:34 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DPULL_TRANSLATIONS=NO" ];
|
|
|
|
|
2017-11-02 02:57:57 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace autostart/CMakeLists.txt \
|
|
|
|
--replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg"
|
|
|
|
'';
|
|
|
|
|
2016-10-03 23:59:34 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Power management module for LXQt";
|
|
|
|
homepage = https://github.com/lxde/lxqt-powermanagement;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = with platforms; unix;
|
2017-02-19 14:28:13 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2016-10-03 23:59:34 +02:00
|
|
|
};
|
|
|
|
}
|