ffado: prevent build tools from leaking into closure

FFADO stored paths to various build dependencies and libraries
like gcc or pyuic5 (from PyQT) in $out/lib/libffado/static_info.txt,
thus  bringing them into the runtime closure.

With Nix, this information is not really critical, as we can find
out the exact dependencies from .drv files in Nix store.

This alone reduced the closure size from 914866184B to 132341176B.
This commit is contained in:
Jan Tojnar 2019-06-18 02:37:27 +02:00
parent 7815c86c10
commit e40d568daa
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -53,6 +53,11 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
postInstall = ''
# prevent build tools from leaking into closure
echo 'See `nix-store --query --tree ${placeholder "out"}`.' > $out/lib/libffado/static_info.txt
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://www.ffado.org; homepage = http://www.ffado.org;
description = "FireWire audio drivers"; description = "FireWire audio drivers";