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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
898 B
Nix
Raw Normal View History

{ mkDerivation, appstream, qtbase, qttools, nixosTests }:
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 10:29:19 +00:00
mkDerivation {
pname = "appstream-qt";
inherit (appstream) version src;
2018-02-22 02:58:35 +00:00
outputs = [ "out" "dev" "installedTests" ];
2020-09-08 10:29:19 +00:00
2018-02-22 02:58:35 +00:00
buildInputs = appstream.buildInputs ++ [ appstream qtbase ];
nativeBuildInputs = appstream.nativeBuildInputs ++ [ qttools ];
mesonFlags = appstream.mesonFlags ++ [ "-Dqt=true" ];
patches = appstream.patches;
2020-09-08 10:29:19 +00:00
postFixup = ''
sed -i "$dev/lib/cmake/AppStreamQt/AppStreamQtConfig.cmake" \
-e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${PACKAGE_PREFIX_DIR}@$dev@"
'';
passthru = appstream.passthru // {
tests = {
installed-tests = nixosTests.installed-tests.appstream-qt;
};
};
2018-02-22 02:58:35 +00:00
meta = appstream.meta // {
description = "Software metadata handling library - Qt";
};
}