2020-04-25 20:01:05 +03:00
|
|
|
{ lib
|
2024-04-18 20:21:42 +03:00
|
|
|
, stdenv
|
2020-04-25 20:01:05 +03:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2024-04-18 20:21:42 +03:00
|
|
|
, layer-shell-qt
|
2022-07-23 18:10:11 +03:00
|
|
|
, libexif
|
2024-04-18 20:21:42 +03:00
|
|
|
, libfm-qt
|
2023-11-05 23:23:51 +03:00
|
|
|
, lxqt-build-tools
|
|
|
|
, lxqt-menu-data
|
2024-04-18 20:21:42 +03:00
|
|
|
, menu-cache
|
|
|
|
, pkg-config
|
2020-04-25 20:01:05 +03:00
|
|
|
, qtbase
|
2022-07-01 20:19:29 +03:00
|
|
|
, qtimageformats
|
2024-04-18 20:21:42 +03:00
|
|
|
, qttools
|
|
|
|
, qtwayland
|
2024-05-08 23:19:15 +03:00
|
|
|
, qtsvg
|
2024-04-18 20:21:42 +03:00
|
|
|
, wrapQtAppsHook
|
2022-09-28 00:32:15 +03:00
|
|
|
, gitUpdater
|
2020-04-25 20:01:05 +03:00
|
|
|
}:
|
2016-10-04 01:06:13 +03:00
|
|
|
|
2024-04-18 20:21:42 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2016-10-04 01:06:13 +03:00
|
|
|
pname = "pcmanfm-qt";
|
2024-04-18 20:21:42 +03:00
|
|
|
version = "2.0.0";
|
2016-10-04 01:06:13 +03:00
|
|
|
|
2017-11-02 05:00:50 +03:00
|
|
|
src = fetchFromGitHub {
|
2018-05-22 04:24:38 +03:00
|
|
|
owner = "lxqt";
|
2016-10-04 01:06:13 +03:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-18 20:21:42 +03:00
|
|
|
hash = "sha256-PyCtcn+QHwX/iy85A3y7Phf8ogdSRrwtXrJYGxrjyLM=";
|
2016-10-04 01:06:13 +03:00
|
|
|
};
|
|
|
|
|
2017-02-19 15:43:43 +03:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-17 05:21:50 +03:00
|
|
|
pkg-config
|
2023-11-05 23:23:51 +03:00
|
|
|
lxqt-build-tools
|
|
|
|
qttools
|
2024-04-18 20:21:42 +03:00
|
|
|
wrapQtAppsHook
|
2017-02-19 15:43:43 +03:00
|
|
|
];
|
2016-10-04 01:06:13 +03:00
|
|
|
|
|
|
|
buildInputs = [
|
2024-04-18 20:21:42 +03:00
|
|
|
layer-shell-qt
|
2022-07-23 18:10:11 +03:00
|
|
|
libexif
|
2024-04-18 20:21:42 +03:00
|
|
|
libfm-qt
|
2023-11-05 23:23:51 +03:00
|
|
|
lxqt-menu-data
|
2024-04-18 20:21:42 +03:00
|
|
|
menu-cache
|
2019-02-06 02:14:23 +03:00
|
|
|
qtbase
|
2022-07-01 20:19:29 +03:00
|
|
|
qtimageformats # add-on module to support more image file formats
|
2024-04-18 20:21:42 +03:00
|
|
|
qtwayland
|
2024-05-08 23:19:15 +03:00
|
|
|
qtsvg
|
2016-10-04 01:06:13 +03:00
|
|
|
];
|
|
|
|
|
2022-09-28 00:32:15 +03:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-04-26 17:53:59 +03:00
|
|
|
|
2020-05-12 00:11:37 +03:00
|
|
|
postPatch = ''
|
2024-04-18 20:21:42 +03:00
|
|
|
substituteInPlace config/pcmanfm-qt/lxqt/settings.conf.in --replace-fail @LXQT_SHARE_DIR@ /run/current-system/sw/share/lxqt
|
2020-05-12 00:11:37 +03:00
|
|
|
'';
|
|
|
|
|
2019-07-28 00:05:17 +03:00
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/lxqt/pcmanfm-qt";
|
2021-02-08 17:41:52 +03:00
|
|
|
description = "File manager and desktop icon manager (Qt port of PCManFM and libfm)";
|
2024-03-19 05:14:51 +03:00
|
|
|
mainProgram = "pcmanfm-qt";
|
2021-02-08 17:41:52 +03:00
|
|
|
license = licenses.gpl2Plus;
|
2016-10-04 01:06:13 +03:00
|
|
|
platforms = with platforms; unix;
|
2022-04-14 16:52:15 +03:00
|
|
|
maintainers = teams.lxqt.members;
|
2016-10-04 01:06:13 +03:00
|
|
|
};
|
|
|
|
}
|