19 stdenv.mkDerivation (finalAttrs: {
23 src = fetchFromGitHub {
24 owner = "mltframework";
26 rev = "v${finalAttrs.version}";
27 hash = "sha256-hYpb3ZCRXd07KQVZ3xpNeEJY5HFLNDsqpPJp3b9UXtE=";
48 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
50 env.NIX_CFLAGS_COMPILE = "-DSHOTCUT_NOUPGRADE";
51 cmakeFlags = [ "-DSHOTCUT_VERSION=${finalAttrs.version}" ];
56 src = ./fix-mlt-ffmpeg-path.patch;
61 "--set FREI0R_PATH ${frei0r}/lib/frei0r-1"
62 "--set LADSPA_PATH ${ladspaPlugins}/lib/ladspa"
63 "--prefix LD_LIBRARY_PATH : ${
64 lib.makeLibraryPath ([ SDL2 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ jack1 ])
68 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
69 mkdir $out/Applications $out/bin
70 mv $out/Shotcut.app $out/Applications/Shotcut.app
71 ln -s $out/Applications/Shotcut.app/Contents/MacOS/Shotcut $out/bin/shotcut
74 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
77 description = "Free, open source, cross-platform video editor";
79 An official binary for Shotcut, which includes all the
80 dependencies pinned to specific versions, is provided on
83 If you encounter problems with this version, please contact the
84 nixpkgs maintainer(s). If you wish to report any bugs upstream,
85 please use the official build from shotcut.org instead.
87 homepage = "https://shotcut.org";
88 license = licenses.gpl3Plus;
89 maintainers = with maintainers; [
93 platforms = platforms.unix;
94 mainProgram = "shotcut";