summary refs log tree commit diff
path: root/pkgs/os-specific/linux/ffado
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-06-18 02:37:27 +0200
committerJan Tojnar <jtojnar@gmail.com>2019-06-18 02:46:36 +0200
commite40d568daacce179c51a32b43fabb280ce171175 (patch)
tree2ff11728f11ee2ce740a8bc9e301ffde3cd22b5b /pkgs/os-specific/linux/ffado
parent7815c86c104a99417db844791dcda34fe7a7965f (diff)
downloadnixpkgs-e40d568daacce179c51a32b43fabb280ce171175.tar
nixpkgs-e40d568daacce179c51a32b43fabb280ce171175.tar.gz
nixpkgs-e40d568daacce179c51a32b43fabb280ce171175.tar.bz2
nixpkgs-e40d568daacce179c51a32b43fabb280ce171175.tar.lz
nixpkgs-e40d568daacce179c51a32b43fabb280ce171175.tar.xz
nixpkgs-e40d568daacce179c51a32b43fabb280ce171175.tar.zst
nixpkgs-e40d568daacce179c51a32b43fabb280ce171175.zip
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/os-specific/linux/ffado')
-rw-r--r--pkgs/os-specific/linux/ffado/default.nix5
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 3b3d5605248..cdf8d8d2de5 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";