mlt: fix binary not being wrapped if enableQt is disabled

Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
lucasew 2023-07-17 14:00:56 -03:00 committed by Anderson Torres
parent 5b86eecfab
commit 815a2d2622

View File

@ -13,6 +13,7 @@
, libsamplerate
, libvorbis
, libxml2
, makeWrapper
, movit
, opencv4
, rtaudio
@ -52,6 +53,7 @@ stdenv.mkDerivation rec {
cmake
pkg-config
which
makeWrapper
] ++ lib.optionals cudaSupport [
cudaPackages.cuda_nvcc
] ++ lib.optionals enablePython [
@ -102,11 +104,13 @@ stdenv.mkDerivation rec {
"-DSWIG_PYTHON=ON"
];
qtWrapperArgs = [
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
] ++ lib.optionals enableJackrack [
"--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"
];
preFixup = ''
wrapProgram $out/bin/melt \
--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1 \
${lib.optionalString enableJackrack "--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"} \
${lib.optionalString enableQt "\${qtWrapperArgs[@]}"}
'';
postFixup = ''
substituteInPlace "$dev"/lib/pkgconfig/mlt-framework-7.pc \