linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / appstream / qt.nix
blob0bcb4741ff1248c9df3e9a8979db4082838fd00e
1 { mkDerivation, appstream, qtbase, qttools }:
3 # TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here
5 mkDerivation {
6   pname = "appstream-qt";
7   inherit (appstream) version src patches;
9   outputs = [ "out" "dev" ];
11   buildInputs = appstream.buildInputs ++ [ appstream qtbase ];
13   nativeBuildInputs = appstream.nativeBuildInputs ++ [ qttools ];
15   mesonFlags = appstream.mesonFlags ++ [ "-Dqt=true" ];
17   postFixup = ''
18     sed -i "$dev/lib/cmake/AppStreamQt/AppStreamQtConfig.cmake" \
19       -e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${PACKAGE_PREFIX_DIR}@$dev@"
20   '';
22   meta = appstream.meta // {
23     description = "Software metadata handling library - Qt";
24  };