2021-01-25 08:26:54 +00:00
|
|
|
{ mkDerivation, appstream, qtbase, qttools }:
|
2018-02-22 02:58:35 +00:00
|
|
|
|
2018-05-21 07:45:06 +01:00
|
|
|
# TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here
|
|
|
|
|
2020-09-08 11:29:19 +01:00
|
|
|
mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "appstream-qt";
|
2018-08-04 21:16:15 +01:00
|
|
|
inherit (appstream) version src prePatch;
|
2018-02-22 02:58:35 +00:00
|
|
|
|
2020-09-08 11:29:19 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-02-22 02:58:35 +00:00
|
|
|
buildInputs = appstream.buildInputs ++ [ appstream qtbase ];
|
|
|
|
|
|
|
|
nativeBuildInputs = appstream.nativeBuildInputs ++ [ qttools ];
|
|
|
|
|
|
|
|
mesonFlags = appstream.mesonFlags ++ [ "-Dqt=true" ];
|
|
|
|
|
2020-09-08 11:29:19 +01:00
|
|
|
postFixup = ''
|
|
|
|
sed -i "$dev/lib/cmake/AppStreamQt/AppStreamQtConfig.cmake" \
|
|
|
|
-e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${PACKAGE_PREFIX_DIR}@$dev@"
|
|
|
|
'';
|
|
|
|
|
2018-02-22 02:58:35 +00:00
|
|
|
meta = appstream.meta // {
|
|
|
|
description = "Software metadata handling library - Qt";
|
|
|
|
};
|
|
|
|
}
|