forked from mirrors/nixpkgs
appstream-qt: do not remove built libraries
This commit is contained in:
parent
d260277928
commit
eaae476d42
|
@ -1,5 +1,7 @@
|
||||||
{ stdenv, appstream, qtbase, qttools }:
|
{ stdenv, appstream, qtbase, qttools }:
|
||||||
|
|
||||||
|
# TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "appstream-qt-${version}";
|
name = "appstream-qt-${version}";
|
||||||
inherit (appstream) version src prePatch;
|
inherit (appstream) version src prePatch;
|
||||||
|
@ -10,15 +12,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
mesonFlags = appstream.mesonFlags ++ [ "-Dqt=true" ];
|
mesonFlags = appstream.mesonFlags ++ [ "-Dqt=true" ];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
rm -rf $out/{bin,etc,include/appstream,lib/pkgconfig,lib/libappstream.so*,share}
|
|
||||||
'';
|
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
patchelf --add-needed ${appstream}/lib/libappstream.so.4 \
|
|
||||||
$out/lib/libAppStreamQt.so
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = appstream.meta // {
|
meta = appstream.meta // {
|
||||||
description = "Software metadata handling library - Qt";
|
description = "Software metadata handling library - Qt";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue