2020-04-25 20:01:05 +03:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, lxqt-build-tools
|
2022-09-28 00:32:15 +03:00
|
|
|
, gitUpdater
|
2020-04-25 20:01:05 +03:00
|
|
|
}:
|
2016-10-04 00:43:06 +03:00
|
|
|
|
2019-07-28 00:05:17 +03:00
|
|
|
mkDerivation rec {
|
2019-02-06 02:13:21 +03:00
|
|
|
pname = "libqtxdg";
|
2023-11-05 23:23:49 +03:00
|
|
|
version = "3.12.0";
|
2016-10-04 00:43:06 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-05-22 04:24:38 +03:00
|
|
|
owner = "lxqt";
|
2019-02-06 02:13:21 +03:00
|
|
|
repo = pname;
|
2016-10-04 00:43:06 +03:00
|
|
|
rev = version;
|
2023-11-05 23:23:49 +03:00
|
|
|
hash = "sha256-y+3noaHubZnwUUs8vbMVvZPk+6Fhv37QXUb//reedCU=";
|
2016-10-04 00:43:06 +03:00
|
|
|
};
|
|
|
|
|
2020-04-25 20:01:05 +03:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
lxqt-build-tools
|
|
|
|
];
|
2016-10-04 00:43:06 +03:00
|
|
|
|
2020-04-25 20:01:05 +03:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
];
|
2016-10-04 00:43:06 +03:00
|
|
|
|
2017-11-02 04:50:28 +03:00
|
|
|
preConfigure = ''
|
2018-04-03 23:54:38 +03:00
|
|
|
cmakeFlagsArray+=(
|
2020-04-26 23:25:21 +03:00
|
|
|
"-DQTXDGX_ICONENGINEPLUGIN_INSTALL_PATH=$out/$qtPluginPrefix/iconengines"
|
2020-05-04 01:53:35 +03:00
|
|
|
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
2018-04-03 23:54:38 +03:00
|
|
|
)
|
2017-11-02 04:50:28 +03:00
|
|
|
'';
|
|
|
|
|
2022-09-28 00:32:15 +03:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-04-26 17:53:59 +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/libqtxdg";
|
2021-02-08 17:41:52 +03:00
|
|
|
description = "Qt implementation of freedesktop.org xdg specs";
|
|
|
|
license = licenses.lgpl21Plus;
|
2019-11-02 20:49:35 +03:00
|
|
|
platforms = platforms.linux;
|
2022-04-14 16:52:15 +03:00
|
|
|
maintainers = teams.lxqt.members;
|
2016-10-04 00:43:06 +03:00
|
|
|
};
|
|
|
|
}
|