libpulseaudio: preserve vapi files
The current postInstall removes all of $out/share, which also includes pulse's vapi/deps files. Certain projects (budgie-desktop, for example) require these definitions, but do not require the full pulseaudio server. Preserving these files allows these projects to only depend on libpulseaudio. Fixes #73463.
This commit is contained in:
parent
fa6aa9eeb7
commit
629a74477f
|
@ -114,7 +114,9 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
postInstall = lib.optionalString libOnly ''
|
||||
rm -rf $out/{bin,share,etc,lib/{pulse-*,systemd}}
|
||||
find $out/share -maxdepth 1 -mindepth 1 ! -name "vala" -prune -exec rm -r {} \;
|
||||
find $out/share/vala -maxdepth 1 -mindepth 1 ! -name "vapi" -prune -exec rm -r {} \;
|
||||
rm -r $out/{bin,etc,lib/pulse-*}
|
||||
''
|
||||
+ ''
|
||||
moveToOutput lib/cmake "$dev"
|
||||
|
|
Loading…
Reference in a new issue