From e40d568daacce179c51a32b43fabb280ce171175 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 18 Jun 2019 02:37:27 +0200 Subject: [PATCH] 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. --- pkgs/os-specific/linux/ffado/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/linux/ffado/default.nix b/pkgs/os-specific/linux/ffado/default.nix index 3b3d56052485..cdf8d8d2de5a 100644 --- a/pkgs/os-specific/linux/ffado/default.nix +++ b/pkgs/os-specific/linux/ffado/default.nix @@ -53,6 +53,11 @@ in stdenv.mkDerivation rec { 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; { homepage = http://www.ffado.org; description = "FireWire audio drivers";