22 assert lib.versionAtLeast mlt.version "6.24.0";
28 src = fetchFromGitHub {
29 owner = "mltframework";
32 sha256 = "1y46n5gmlayfl46l0vhg5g5dbbc0sg909mxb68sia0clkaas8xrh";
35 nativeBuildInputs = [ pkg-config qmake ];
50 env.NIX_CFLAGS_COMPILE = "-I${mlt.dev}/include/mlt++ -I${mlt.dev}/include/mlt";
52 "QMAKE_LRELEASE=${lib.getDev qttools}/bin/lrelease"
53 "SHOTCUT_VERSION=${version}"
54 "DEFINES+=SHOTCUT_NOUPGRADE"
58 sed 's_shotcutPath, "melt[^"]*"_"${mlt}/bin/melt"_' -i src/jobs/meltjob.cpp
59 sed 's_shotcutPath, "ffmpeg"_"${mlt.ffmpeg}/bin/ffmpeg"_' -i src/jobs/ffmpegjob.cpp
60 sed 's_qApp->applicationDirPath(), "ffmpeg"_"${mlt.ffmpeg}/bin/ffmpeg"_' -i src/docks/encodedock.cpp
62 sed "s_/usr/bin/nice_''${NICE}_" -i src/jobs/meltjob.cpp src/jobs/ffmpegjob.cpp
66 "--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
67 "--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"
68 "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ jack1 SDL2 ]}"
69 "--prefix PATH : ${mlt}/bin"
73 mkdir -p $out/share/shotcut
74 cp -r src/qml $out/share/shotcut/
77 passthru.updateScript = gitUpdater {
82 description = "A free, open source, cross-platform video editor";
84 An official binary for Shotcut, which includes all the
85 dependencies pinned to specific versions, is provided on
88 If you encounter problems with this version, please contact the
89 nixpkgs maintainer(s). If you wish to report any bugs upstream,
90 please use the official build from shotcut.org instead.
92 homepage = "https://shotcut.org";
93 license = licenses.gpl3Plus;
94 maintainers = with maintainers; [ goibhniu woffs peti ];
95 platforms = platforms.linux;