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