nixpkgs/pkgs/development/libraries/appstream/qt.nix

26 lines
725 B
Nix
Raw Normal View History

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