mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
mlt: fix binary not being wrapped if enableQt is disabled
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
parent
5b86eecfab
commit
815a2d2622
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user