nixpkgs/pkgs/desktops/lxqt/lxqt-powermanagement/default.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

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