diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-06-18 02:37:27 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-06-18 02:46:36 +0200 |
commit | e40d568daacce179c51a32b43fabb280ce171175 (patch) | |
tree | 2ff11728f11ee2ce740a8bc9e301ffde3cd22b5b /pkgs | |
parent | 7815c86c104a99417db844791dcda34fe7a7965f (diff) |
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.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/os-specific/linux/ffado/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/ffado/default.nix b/pkgs/os-specific/linux/ffado/default.nix index 3b3d56052485b..cdf8d8d2de5a8 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"; |