3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/appstream/qt.nix

26 lines
725 B
Nix
Raw Normal View History

2020-09-08 11:29:19 +01:00
{ stdenv, mkDerivation, appstream, qtbase, qttools }:
2018-02-22 02:58:35 +00: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 {
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";
};
}