2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-05-03 17:38:23 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, lxqt-build-tools
|
2024-04-21 15:54:59 +00:00
|
|
|
, wrapQtAppsHook
|
2022-10-06 18:32:54 +00:00
|
|
|
, gitUpdater
|
2024-07-01 15:47:52 +00:00
|
|
|
, version ? "2.0.1"
|
2020-05-03 17:38:23 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "qtermwidget";
|
2024-06-20 14:57:18 +00:00
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxqt";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = {
|
|
|
|
"1.4.0" = "sha256-wYUOqAiBjnupX1ITbFMw7sAk42V37yDz9SrjVhE4FgU=";
|
2024-07-01 15:47:52 +00:00
|
|
|
"2.0.1" = "sha256-dqKsYAtoJgtXYL/MI3/p3N5kzxC7JfyO4Jn6YMhaV78=";
|
2024-06-20 14:57:18 +00:00
|
|
|
}."${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
lxqt-build-tools
|
2023-11-16 04:20:00 +00:00
|
|
|
qttools
|
2024-04-21 15:54:59 +00:00
|
|
|
wrapQtAppsHook
|
2020-05-03 17:38:23 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/lxqt/qtermwidget";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Terminal emulator widget for Qt, used by QTerminal";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; unix;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = teams.lxqt.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|