3
0
Fork 0
forked from mirrors/nixpkgs

appstream-qt: do not remove built libraries

This commit is contained in:
Peter Hoeg 2018-05-21 14:45:06 +08:00
parent d260277928
commit eaae476d42

View file

@ -1,5 +1,7 @@
{ stdenv, appstream, qtbase, qttools }:
# TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here
stdenv.mkDerivation rec {
name = "appstream-qt-${version}";
inherit (appstream) version src prePatch;
@ -10,15 +12,6 @@ stdenv.mkDerivation rec {
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 // {
description = "Software metadata handling library - Qt";
};