2024-04-18 18:33:10 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-25 18:01:05 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2024-04-18 18:33:10 +01:00
|
|
|
, libconfig
|
|
|
|
, lxqt-build-tools
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-04-25 18:01:05 +01:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
2024-04-18 18:33:10 +01:00
|
|
|
, qtx11extras
|
|
|
|
, wrapQtAppsHook
|
2022-09-27 22:32:15 +01:00
|
|
|
, gitUpdater
|
2020-04-25 18:01:05 +01:00
|
|
|
}:
|
2016-10-06 23:01:04 +01:00
|
|
|
|
2024-04-18 18:33:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-10-06 23:01:04 +01:00
|
|
|
pname = "compton-conf";
|
2020-12-15 22:40:41 +00:00
|
|
|
version = "0.16.0";
|
2016-10-06 23:01:04 +01:00
|
|
|
|
2017-11-02 02:01:57 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-05-22 02:24:38 +01:00
|
|
|
owner = "lxqt";
|
2016-10-06 23:01:04 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-05 20:25:51 +00:00
|
|
|
hash = "sha256-GNS0GdkQOEFQHCeXFVNDdT35KCRhfwmkL78tpY71mz0=";
|
2016-10-06 23:01:04 +01:00
|
|
|
};
|
|
|
|
|
2017-02-19 11:13:36 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2024-04-18 18:33:10 +01:00
|
|
|
lxqt-build-tools
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2023-11-05 20:25:51 +00:00
|
|
|
qttools
|
2024-04-18 18:33:10 +01:00
|
|
|
qtx11extras
|
|
|
|
wrapQtAppsHook
|
2017-02-19 11:13:36 +00:00
|
|
|
];
|
2016-10-06 23:01:04 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libconfig
|
2024-04-18 18:33:10 +01:00
|
|
|
qtbase
|
2016-10-06 23:01:04 +01:00
|
|
|
];
|
|
|
|
|
2017-11-02 02:01:57 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace autostart/CMakeLists.txt \
|
2024-04-18 18:33:10 +01:00
|
|
|
--replace-fail "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg" \
|
2020-04-25 18:01:05 +01:00
|
|
|
'';
|
2017-11-02 02:01:57 +00:00
|
|
|
|
2022-09-27 22:32:15 +01:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-04-26 15:53:59 +01:00
|
|
|
|
2019-07-27 22:05:17 +01:00
|
|
|
meta = with lib; {
|
2022-05-29 09:43:45 +01:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/lxqt/compton-conf";
|
2021-02-08 14:41:52 +00:00
|
|
|
description = "GUI configuration tool for compton X composite manager";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "compton-conf";
|
2021-02-08 14:41:52 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2016-10-06 23:01:04 +01:00
|
|
|
platforms = with platforms; unix;
|
2022-04-14 14:52:15 +01:00
|
|
|
maintainers = teams.lxqt.members;
|
2016-10-06 23:01:04 +01:00
|
|
|
};
|
|
|
|
}
|