about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Dunham <andrew@du.nham.ca>2018-10-27 15:11:35 -0700
committerAndrew Dunham <andrew@du.nham.ca>2018-10-27 15:11:35 -0700
commit79d46f0a28e0a5fc2068f76f68e06a4d86ad6c93 (patch)
tree94329e53c1579aa2c3a8de60247127d693526346
parenta3e367ff4bbe479eb269b31f1eaf28fd4c1158c3 (diff)
downloadnixlib-79d46f0a28e0a5fc2068f76f68e06a4d86ad6c93.tar
nixlib-79d46f0a28e0a5fc2068f76f68e06a4d86ad6c93.tar.gz
nixlib-79d46f0a28e0a5fc2068f76f68e06a4d86ad6c93.tar.bz2
nixlib-79d46f0a28e0a5fc2068f76f68e06a4d86ad6c93.tar.lz
nixlib-79d46f0a28e0a5fc2068f76f68e06a4d86ad6c93.tar.xz
nixlib-79d46f0a28e0a5fc2068f76f68e06a4d86ad6c93.tar.zst
nixlib-79d46f0a28e0a5fc2068f76f68e06a4d86ad6c93.zip
vlc: shrink runtime closure size by removing CONFIGURE_LINE
-rw-r--r--pkgs/applications/video/vlc/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/video/vlc/default.nix b/pkgs/applications/video/vlc/default.nix
index b08ff812ace4..06a53ead3baa 100644
--- a/pkgs/applications/video/vlc/default.nix
+++ b/pkgs/applications/video/vlc/default.nix
@@ -72,6 +72,11 @@ stdenv.mkDerivation rec {
     "--with-kde-solid=$out/share/apps/solid/actions"
   ] ++ optional onlyLibVLC "--disable-vlc";
 
+  # Remove runtime dependencies on libraries
+  postConfigure = ''
+    sed -i 's|^#define CONFIGURE_LINE.*$|#define CONFIGURE_LINE "<removed>"|g' config.h
+  '';
+
   meta = with stdenv.lib; {
     description = "Cross-platform media player and streaming server";
     homepage = http://www.videolan.org/vlc/;