2020-05-03 17:38:23 +00:00
|
|
|
{ lib
|
2024-04-21 15:54:59 +00:00
|
|
|
, stdenv
|
2020-05-03 17:38:23 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2024-04-21 15:54:59 +00:00
|
|
|
, libXdmcp
|
2020-05-03 17:38:23 +00:00
|
|
|
, libexif
|
|
|
|
, libfm
|
2024-04-21 15:54:59 +00:00
|
|
|
, libpthreadstubs
|
|
|
|
, libxcb
|
|
|
|
, lxqt-build-tools
|
|
|
|
, lxqt-menu-data
|
2020-05-03 17:38:23 +00:00
|
|
|
, menu-cache
|
2024-04-21 15:54:59 +00:00
|
|
|
, pcre
|
|
|
|
, pkg-config
|
2020-05-03 17:38:23 +00:00
|
|
|
, qttools
|
2024-04-21 15:54:59 +00:00
|
|
|
, wrapQtAppsHook
|
2022-10-06 18:32:54 +00:00
|
|
|
, gitUpdater
|
2024-05-15 15:35:15 +00:00
|
|
|
, version ? "2.0.2"
|
2024-04-21 15:54:59 +00:00
|
|
|
, qtx11extras ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-03 17:38:23 +00:00
|
|
|
pname = "libfm-qt";
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxqt";
|
|
|
|
repo = "libfm-qt";
|
2020-05-03 17:38:23 +00:00
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = {
|
|
|
|
"1.4.0" = "sha256-QxPYSA7537K+/dRTxIYyg+Q/kj75rZOdzlUsmSdQcn4=";
|
2024-05-15 15:35:15 +00:00
|
|
|
"2.0.2" = "sha256-Ntj+yixGGGgL8ylRv2IJsWtapxE71JNl9cC9K0JToNU=";
|
2024-04-21 15:54:59 +00:00
|
|
|
}."${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
lxqt-build-tools
|
2023-11-16 04:20:00 +00:00
|
|
|
qttools
|
2024-04-21 15:54:59 +00:00
|
|
|
wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
libXdmcp
|
2020-04-24 23:36:52 +00:00
|
|
|
libexif
|
|
|
|
libfm
|
2024-04-21 15:54:59 +00:00
|
|
|
libpthreadstubs
|
|
|
|
libxcb
|
|
|
|
lxqt-menu-data
|
2020-04-24 23:36:52 +00:00
|
|
|
menu-cache
|
2024-04-21 15:54:59 +00:00
|
|
|
pcre
|
|
|
|
] ++ (lib.optionals (lib.versionAtLeast "2.0.0" version) [qtx11extras])
|
|
|
|
;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/lxqt/libfm-qt";
|
2021-02-13 14:23:35 +00:00
|
|
|
description = "Core library of PCManFM-Qt (Qt binding for libfm)";
|
|
|
|
license = licenses.lgpl21Plus;
|
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
|
|
|
};
|
|
|
|
}
|