mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
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:
parent
6d4e6102a7
commit
747ad4befd
@ -32,6 +32,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
|
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; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
|
|||||||
ladspa-sdk
|
ladspa-sdk
|
||||||
];
|
];
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
# Mostly taken from:
|
# Mostly taken from:
|
||||||
# http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
|
# http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
@ -31,6 +33,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
|
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 = {
|
passthru = {
|
||||||
|
Loading…
Reference in New Issue
Block a user