Merge pull request #105077 from woffs/shotcut-qt515
shotcut: use qt-5.15, rework
This commit is contained in:
commit
b181c638b1
@ -4,6 +4,7 @@
|
|||||||
, mkDerivation
|
, mkDerivation
|
||||||
, SDL2
|
, SDL2
|
||||||
, frei0r
|
, frei0r
|
||||||
|
, ladspaPlugins
|
||||||
, gettext
|
, gettext
|
||||||
, mlt
|
, mlt
|
||||||
, jack1
|
, jack1
|
||||||
@ -14,14 +15,12 @@
|
|||||||
, qtwebsockets
|
, qtwebsockets
|
||||||
, qtquickcontrols2
|
, qtquickcontrols2
|
||||||
, qtgraphicaleffects
|
, qtgraphicaleffects
|
||||||
, libmlt
|
|
||||||
, qmake
|
, qmake
|
||||||
, qttools
|
, qttools
|
||||||
, genericUpdater
|
, genericUpdater
|
||||||
, common-updater-scripts
|
, common-updater-scripts
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.lib.versionAtLeast libmlt.version "6.22.1";
|
|
||||||
assert stdenv.lib.versionAtLeast mlt.version "6.22.1";
|
assert stdenv.lib.versionAtLeast mlt.version "6.22.1";
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
@ -40,9 +39,9 @@ mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL2
|
SDL2
|
||||||
frei0r
|
frei0r
|
||||||
|
ladspaPlugins
|
||||||
gettext
|
gettext
|
||||||
mlt
|
mlt
|
||||||
libmlt
|
|
||||||
qtbase
|
qtbase
|
||||||
qtmultimedia
|
qtmultimedia
|
||||||
qtx11extras
|
qtx11extras
|
||||||
@ -51,7 +50,7 @@ mkDerivation rec {
|
|||||||
qtgraphicaleffects
|
qtgraphicaleffects
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${libmlt}/include/mlt++ -I${libmlt}/include/mlt";
|
NIX_CFLAGS_COMPILE = "-I${mlt.dev}/include/mlt++ -I${mlt.dev}/include/mlt";
|
||||||
qmakeFlags = [
|
qmakeFlags = [
|
||||||
"QMAKE_LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
|
"QMAKE_LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
|
||||||
"SHOTCUT_VERSION=${version}"
|
"SHOTCUT_VERSION=${version}"
|
||||||
@ -68,6 +67,7 @@ mkDerivation rec {
|
|||||||
|
|
||||||
qtWrapperArgs = [
|
qtWrapperArgs = [
|
||||||
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
|
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
|
||||||
|
"--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"
|
||||||
"--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ jack1 SDL2 ]}"
|
"--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ jack1 SDL2 ]}"
|
||||||
"--prefix PATH : ${mlt}/bin"
|
"--prefix PATH : ${mlt}/bin"
|
||||||
];
|
];
|
||||||
|
@ -1,11 +1,30 @@
|
|||||||
{ stdenv, fetchFromGitHub, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate
|
{ stdenv
|
||||||
, libvorbis, libxml2, makeWrapper, movit, pkgconfig, sox, qtbase, qtsvg
|
, fetchFromGitHub
|
||||||
, fftw, vid-stab, opencv3, ladspa-sdk, genericUpdater, common-updater-scripts
|
, SDL
|
||||||
|
, ffmpeg
|
||||||
|
, frei0r
|
||||||
|
, libjack2
|
||||||
|
, libdv
|
||||||
|
, libsamplerate
|
||||||
|
, libvorbis
|
||||||
|
, libxml2
|
||||||
|
, movit
|
||||||
|
, pkgconfig
|
||||||
|
, sox
|
||||||
|
, qtbase
|
||||||
|
, qtsvg
|
||||||
|
, fftw
|
||||||
|
, vid-stab
|
||||||
|
, opencv3
|
||||||
|
, ladspa-sdk
|
||||||
|
, genericUpdater
|
||||||
|
, common-updater-scripts
|
||||||
|
, ladspaPlugins
|
||||||
|
, mkDerivation
|
||||||
|
, which
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let inherit (stdenv.lib) getDev; in
|
let inherit (stdenv.lib) getDev; in
|
||||||
|
mkDerivation rec {
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "mlt";
|
pname = "mlt";
|
||||||
version = "6.22.1";
|
version = "6.22.1";
|
||||||
|
|
||||||
@ -17,17 +36,36 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2
|
SDL
|
||||||
makeWrapper movit pkgconfig qtbase qtsvg sox fftw vid-stab opencv3
|
ffmpeg
|
||||||
|
frei0r
|
||||||
|
libjack2
|
||||||
|
libdv
|
||||||
|
libsamplerate
|
||||||
|
libvorbis
|
||||||
|
libxml2
|
||||||
|
movit
|
||||||
|
pkgconfig
|
||||||
|
qtbase
|
||||||
|
qtsvg
|
||||||
|
sox
|
||||||
|
fftw
|
||||||
|
vid-stab
|
||||||
|
opencv3
|
||||||
ladspa-sdk
|
ladspa-sdk
|
||||||
|
ladspaPlugins
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ which ];
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
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 = [
|
||||||
"--avformat-swscale" "--enable-gpl" "--enable-gpl" "--enable-gpl3"
|
"--avformat-swscale"
|
||||||
|
"--enable-gpl"
|
||||||
|
"--enable-gpl3"
|
||||||
"--enable-opengl"
|
"--enable-opengl"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -39,9 +77,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postInstall = ''
|
qtWrapperArgs = [
|
||||||
wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
|
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
|
||||||
|
"--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
# Remove an unnecessary reference to movit.dev.
|
# Remove an unnecessary reference to movit.dev.
|
||||||
s=${movit.dev}/include
|
s=${movit.dev}/include
|
||||||
t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
|
t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
|
||||||
|
@ -22789,9 +22789,7 @@ in
|
|||||||
|
|
||||||
scudcloud = callPackage ../applications/networking/instant-messengers/scudcloud { };
|
scudcloud = callPackage ../applications/networking/instant-messengers/scudcloud { };
|
||||||
|
|
||||||
shotcut = libsForQt514.callPackage ../applications/video/shotcut {
|
shotcut = libsForQt5.callPackage ../applications/video/shotcut { };
|
||||||
libmlt = mlt;
|
|
||||||
};
|
|
||||||
|
|
||||||
shogun = callPackage ../applications/science/machine-learning/shogun {
|
shogun = callPackage ../applications/science/machine-learning/shogun {
|
||||||
stdenv = gcc8Stdenv;
|
stdenv = gcc8Stdenv;
|
||||||
|
Loading…
Reference in New Issue
Block a user