3
0
Fork 0
forked from mirrors/nixpkgs

mlt: Remove some -dev paths from the closure

This reduces the closure size of mlt-qt5 from 683 to 278 MiB.
This commit is contained in:
Eelco Dolstra 2017-03-30 23:21:17 +02:00
parent 6d4e6102a7
commit 747ad4befd
2 changed files with 17 additions and 0 deletions

View file

@ -32,6 +32,11 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
# Remove an unnecessary reference to movit.dev.
s=${movit.dev}/include
t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
sed -i $out/lib/mlt/libmltopengl.so -e "s|$s|$t|g"
'';
meta = with stdenv.lib; {

View file

@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
ladspa-sdk
];
outputs = [ "out" "dev" ];
# Mostly taken from:
# http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
configureFlags = [
@ -31,6 +33,16 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
# Remove an unnecessary reference to movit.dev.
s=${movit.dev}/include
t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
sed -i $out/lib/mlt/libmltopengl.so -e "s|$s|$t|g"
# Remove an unnecessary reference to movit.dev.
s=${qtbase.dev}/include
t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
sed -i $out/lib/mlt/libmltqt.so -e "s|$s|$t|g"
'';
passthru = {