20 stdenv.mkDerivation (finalAttrs: {
24 src = fetchFromGitHub {
25 owner = "mltframework";
27 rev = "refs/tags/v${finalAttrs.version}";
28 hash = "sha256-sOBGLQYRGHcXNoKTmqbBqmheUFHe7p696BTCiwtF5JY=";
49 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
51 env.NIX_CFLAGS_COMPILE = "-DSHOTCUT_NOUPGRADE";
53 cmakeFlags = [ "-DSHOTCUT_VERSION=${finalAttrs.version}" ];
58 src = ./fix-mlt-ffmpeg-path.patch;
63 "--set FREI0R_PATH ${frei0r}/lib/frei0r-1"
64 "--set LADSPA_PATH ${ladspaPlugins}/lib/ladspa"
65 "--prefix LD_LIBRARY_PATH : ${
66 lib.makeLibraryPath ([ SDL2 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ jack1 ])
70 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
71 mkdir $out/Applications $out/bin
72 mv $out/Shotcut.app $out/Applications/Shotcut.app
73 ln -s $out/Applications/Shotcut.app/Contents/MacOS/Shotcut $out/bin/shotcut
76 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
79 description = "Free, open source, cross-platform video editor";
81 An official binary for Shotcut, which includes all the
82 dependencies pinned to specific versions, is provided on
85 If you encounter problems with this version, please contact the
86 nixpkgs maintainer(s). If you wish to report any bugs upstream,
87 please use the official build from shotcut.org instead.
89 homepage = "https://shotcut.org";
90 license = lib.licenses.gpl3Plus;
91 maintainers = with lib.maintainers; [
95 platforms = lib.platforms.unix;
96 mainProgram = "shotcut";