diff options
author | Thomas Tuegel <thomas.tuegel@runtimeverification.com> | 2020-09-08 05:29:19 -0500 |
---|---|---|
committer | Thomas Tuegel <thomas.tuegel@runtimeverification.com> | 2020-09-10 10:23:44 -0500 |
commit | ca5687c4dd25feac7ac264c1b27c15339dd1ffd2 (patch) | |
tree | 3434821a007dafbc32c0f74382458041eb578819 /pkgs/development/libraries/appstream | |
parent | 61eb2b639b6a0d6ed141773fb641722c9206e0ad (diff) |
appstream-qt: multiple outputs
Diffstat (limited to 'pkgs/development/libraries/appstream')
-rw-r--r-- | pkgs/development/libraries/appstream/qt.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/libraries/appstream/qt.nix b/pkgs/development/libraries/appstream/qt.nix index 22f1566ad0ace..c9fc96b325127 100644 --- a/pkgs/development/libraries/appstream/qt.nix +++ b/pkgs/development/libraries/appstream/qt.nix @@ -1,17 +1,24 @@ -{ stdenv, appstream, qtbase, qttools }: +{ stdenv, mkDerivation, appstream, qtbase, qttools }: # TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here -stdenv.mkDerivation { +mkDerivation { pname = "appstream-qt"; inherit (appstream) version src prePatch; + outputs = [ "out" "dev" ]; + buildInputs = appstream.buildInputs ++ [ appstream qtbase ]; nativeBuildInputs = appstream.nativeBuildInputs ++ [ qttools ]; mesonFlags = appstream.mesonFlags ++ [ "-Dqt=true" ]; + postFixup = '' + sed -i "$dev/lib/cmake/AppStreamQt/AppStreamQtConfig.cmake" \ + -e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${PACKAGE_PREFIX_DIR}@$dev@" + ''; + meta = appstream.meta // { description = "Software metadata handling library - Qt"; }; |