2024-08-10 16:13:58 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
stdenv,
|
|
|
|
substituteAll,
|
|
|
|
SDL2,
|
|
|
|
frei0r,
|
|
|
|
ladspaPlugins,
|
|
|
|
gettext,
|
|
|
|
mlt,
|
|
|
|
jack1,
|
|
|
|
pkg-config,
|
|
|
|
fftw,
|
|
|
|
qt6,
|
|
|
|
cmake,
|
|
|
|
darwin,
|
|
|
|
gitUpdater,
|
2019-09-24 09:27:49 +00:00
|
|
|
}:
|
2024-03-04 01:17:48 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "shotcut";
|
2024-10-20 09:17:20 +00:00
|
|
|
version = "24.10.13";
|
2014-07-27 10:50:01 +00:00
|
|
|
|
2017-09-26 22:50:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mltframework";
|
|
|
|
repo = "shotcut";
|
2024-03-04 01:17:48 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-10-20 09:17:20 +00:00
|
|
|
hash = "sha256-lt8NXjh222h6l+zfGNKGntUNPya4TUjwqA74DDdWzQo=";
|
2014-07-27 10:50:01 +00:00
|
|
|
};
|
|
|
|
|
2024-08-10 16:13:58 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
qt6.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2017-06-02 15:40:19 +00:00
|
|
|
buildInputs = [
|
2020-09-27 19:21:55 +00:00
|
|
|
SDL2
|
|
|
|
frei0r
|
2020-11-26 11:29:09 +00:00
|
|
|
ladspaPlugins
|
2020-09-27 19:21:55 +00:00
|
|
|
gettext
|
|
|
|
mlt
|
2023-11-23 14:14:13 +00:00
|
|
|
fftw
|
2024-08-10 16:13:23 +00:00
|
|
|
qt6.qtbase
|
|
|
|
qt6.qttools
|
|
|
|
qt6.qtmultimedia
|
|
|
|
qt6.qtcharts
|
2024-08-10 16:14:16 +00:00
|
|
|
qt6.qtwayland
|
2024-08-10 16:13:58 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
|
2014-07-27 10:50:01 +00:00
|
|
|
|
2023-11-23 14:14:13 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-DSHOTCUT_NOUPGRADE";
|
2024-08-10 16:13:58 +00:00
|
|
|
cmakeFlags = [ "-DSHOTCUT_VERSION=${finalAttrs.version}" ];
|
2017-09-26 22:50:42 +00:00
|
|
|
|
2023-11-23 14:14:13 +00:00
|
|
|
patches = [
|
2024-08-10 16:13:58 +00:00
|
|
|
(substituteAll {
|
|
|
|
inherit mlt;
|
|
|
|
src = ./fix-mlt-ffmpeg-path.patch;
|
|
|
|
})
|
2023-11-23 14:14:13 +00:00
|
|
|
];
|
2017-01-09 20:16:30 +00:00
|
|
|
|
2019-08-02 11:26:16 +00:00
|
|
|
qtWrapperArgs = [
|
2023-11-23 14:14:13 +00:00
|
|
|
"--set FREI0R_PATH ${frei0r}/lib/frei0r-1"
|
|
|
|
"--set LADSPA_PATH ${ladspaPlugins}/lib/ladspa"
|
2024-08-10 16:13:58 +00:00
|
|
|
"--prefix LD_LIBRARY_PATH : ${
|
|
|
|
lib.makeLibraryPath ([ SDL2 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ jack1 ])
|
|
|
|
}"
|
2020-09-27 19:21:55 +00:00
|
|
|
];
|
2019-08-02 11:26:16 +00:00
|
|
|
|
2024-03-04 01:17:48 +00:00
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
|
|
mkdir $out/Applications $out/bin
|
|
|
|
mv $out/Shotcut.app $out/Applications/Shotcut.app
|
|
|
|
ln -s $out/Applications/Shotcut.app/Contents/MacOS/Shotcut $out/bin/shotcut
|
|
|
|
'';
|
|
|
|
|
2024-08-10 16:13:58 +00:00
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
2020-09-25 16:21:22 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-07-27 10:50:01 +00:00
|
|
|
description = "Free, open source, cross-platform video editor";
|
|
|
|
longDescription = ''
|
2014-12-30 02:31:03 +00:00
|
|
|
An official binary for Shotcut, which includes all the
|
2014-07-27 10:50:01 +00:00
|
|
|
dependencies pinned to specific versions, is provided on
|
|
|
|
http://shotcut.org.
|
|
|
|
|
|
|
|
If you encounter problems with this version, please contact the
|
|
|
|
nixpkgs maintainer(s). If you wish to report any bugs upstream,
|
|
|
|
please use the official build from shotcut.org instead.
|
|
|
|
'';
|
2020-04-07 17:48:38 +00:00
|
|
|
homepage = "https://shotcut.org";
|
2021-09-15 14:59:19 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-08-10 16:13:58 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
woffs
|
|
|
|
peti
|
|
|
|
];
|
2024-03-04 01:17:48 +00:00
|
|
|
platforms = platforms.unix;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "shotcut";
|
2014-07-27 10:50:01 +00:00
|
|
|
};
|
2024-03-04 01:17:48 +00:00
|
|
|
})
|