mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
appstream-qt: multiple outputs
This commit is contained in:
parent
61eb2b639b
commit
ca5687c4dd
1 changed files with 9 additions and 2 deletions
|
@ -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
|
# TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
mkDerivation {
|
||||||
pname = "appstream-qt";
|
pname = "appstream-qt";
|
||||||
inherit (appstream) version src prePatch;
|
inherit (appstream) version src prePatch;
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
buildInputs = appstream.buildInputs ++ [ appstream qtbase ];
|
buildInputs = appstream.buildInputs ++ [ appstream qtbase ];
|
||||||
|
|
||||||
nativeBuildInputs = appstream.nativeBuildInputs ++ [ qttools ];
|
nativeBuildInputs = appstream.nativeBuildInputs ++ [ qttools ];
|
||||||
|
|
||||||
mesonFlags = appstream.mesonFlags ++ [ "-Dqt=true" ];
|
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 // {
|
meta = appstream.meta // {
|
||||||
description = "Software metadata handling library - Qt";
|
description = "Software metadata handling library - Qt";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue