libsForQt5.mlt: refactor, add darwin support
This commit is contained in:
parent
1c98e07b2b
commit
74ff7795ce
2 changed files with 54 additions and 34 deletions
|
@ -1,34 +1,41 @@
|
||||||
{ config
|
{ config
|
||||||
, lib
|
, lib
|
||||||
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
, SDL
|
, pkg-config
|
||||||
|
, which
|
||||||
|
, wrapQtAppsHook
|
||||||
|
, SDL2
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
|
, fftw
|
||||||
, frei0r
|
, frei0r
|
||||||
, libjack2
|
|
||||||
, libdv
|
, libdv
|
||||||
|
, libjack2
|
||||||
, libsamplerate
|
, libsamplerate
|
||||||
, libvorbis
|
, libvorbis
|
||||||
, libxml2
|
, libxml2
|
||||||
, movit
|
, movit
|
||||||
, pkg-config
|
, opencv4
|
||||||
, sox
|
|
||||||
, qtbase
|
, qtbase
|
||||||
, qtsvg
|
, qtsvg
|
||||||
, fftw
|
, rtaudio
|
||||||
, vid-stab
|
|
||||||
, opencv4
|
|
||||||
, ladspa-sdk
|
|
||||||
, gitUpdater
|
|
||||||
, ladspaPlugins
|
|
||||||
, rubberband
|
, rubberband
|
||||||
, mkDerivation
|
, sox
|
||||||
, which
|
, vid-stab
|
||||||
|
, darwin
|
||||||
, cudaSupport ? config.cudaSupport or false
|
, cudaSupport ? config.cudaSupport or false
|
||||||
, cudaPackages ? {}
|
, cudaPackages ? { }
|
||||||
|
, jackrackSupport ? stdenv.isLinux
|
||||||
|
, ladspa-sdk
|
||||||
|
, ladspaPlugins
|
||||||
|
, pythonSupport ? false
|
||||||
|
, python3
|
||||||
|
, swig
|
||||||
|
, gitUpdater
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mlt";
|
pname = "mlt";
|
||||||
version = "7.16.0";
|
version = "7.16.0";
|
||||||
|
|
||||||
|
@ -36,39 +43,47 @@ mkDerivation rec {
|
||||||
owner = "mltframework";
|
owner = "mltframework";
|
||||||
repo = "mlt";
|
repo = "mlt";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-Ed9CHaeJ8Rkrvfq/dZVOn/5lhHLH7B6A1Qf2xOQfWik=";
|
hash = "sha256-Ed9CHaeJ8Rkrvfq/dZVOn/5lhHLH7B6A1Qf2xOQfWik=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
which
|
||||||
|
wrapQtAppsHook
|
||||||
|
] ++ lib.optionals cudaSupport [
|
||||||
|
cudaPackages.cuda_nvcc
|
||||||
|
] ++ lib.optionals pythonSupport [
|
||||||
|
python3
|
||||||
|
swig
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL
|
SDL2
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
fftw
|
||||||
frei0r
|
frei0r
|
||||||
libjack2
|
|
||||||
libdv
|
libdv
|
||||||
|
libjack2
|
||||||
libsamplerate
|
libsamplerate
|
||||||
libvorbis
|
libvorbis
|
||||||
libxml2
|
libxml2
|
||||||
movit
|
movit
|
||||||
|
opencv4
|
||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
|
rtaudio
|
||||||
|
rubberband
|
||||||
sox
|
sox
|
||||||
fftw
|
|
||||||
vid-stab
|
vid-stab
|
||||||
opencv4
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk_11_0.frameworks.Accelerate
|
||||||
|
] ++ lib.optionals cudaSupport [
|
||||||
|
cudaPackages.cuda_cudart
|
||||||
|
] ++ lib.optionals jackrackSupport [
|
||||||
ladspa-sdk
|
ladspa-sdk
|
||||||
ladspaPlugins
|
ladspaPlugins
|
||||||
rubberband
|
];
|
||||||
] ++ lib.optionals cudaSupport (with cudaPackages; [
|
|
||||||
cuda_cudart
|
|
||||||
]);
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
cmake
|
|
||||||
which
|
|
||||||
pkg-config
|
|
||||||
] ++ lib.optionals cudaSupport (with cudaPackages; [
|
|
||||||
cuda_nvcc
|
|
||||||
]);
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
@ -76,10 +91,13 @@ mkDerivation rec {
|
||||||
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
|
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
|
||||||
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
||||||
"-DMOD_OPENCV=ON"
|
"-DMOD_OPENCV=ON"
|
||||||
|
] ++ lib.optionals pythonSupport [
|
||||||
|
"-DSWIG_PYTHON=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
qtWrapperArgs = [
|
qtWrapperArgs = [
|
||||||
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
|
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
|
||||||
|
] ++ lib.optionals jackrackSupport [
|
||||||
"--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"
|
"--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -99,8 +117,8 @@ mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Open source multimedia framework, designed for television broadcasting";
|
description = "Open source multimedia framework, designed for television broadcasting";
|
||||||
homepage = "https://www.mltframework.org/";
|
homepage = "https://www.mltframework.org/";
|
||||||
license = licenses.gpl3;
|
license = with licenses; [ lgpl21Plus gpl2Plus ];
|
||||||
maintainers = [ maintainers.goibhniu ];
|
maintainers = [ maintainers.goibhniu ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,7 +154,9 @@ in (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdParty // kdeGea
|
||||||
|
|
||||||
maui-core = libsForQt5.callPackage ../development/libraries/maui-core { };
|
maui-core = libsForQt5.callPackage ../development/libraries/maui-core { };
|
||||||
|
|
||||||
mlt = callPackage ../development/libraries/mlt/qt-5.nix { };
|
mlt = callPackage ../development/libraries/mlt/qt-5.nix {
|
||||||
|
stdenv = if pkgs.stdenv.isDarwin then pkgs.darwin.apple_sdk_11_0.stdenv else pkgs.stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
phonon = callPackage ../development/libraries/phonon { };
|
phonon = callPackage ../development/libraries/phonon { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue