Files
nixpkgs/pkgs/by-name/sh/shotcut/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

99 lines
2.2 KiB
Nix

{
lib,
fetchFromGitHub,
stdenv,
replaceVars,
SDL2,
frei0r,
ladspaPlugins,
gettext,
jack1,
pkg-config,
fftw,
qt6,
qt6Packages,
cmake,
gitUpdater,
ffmpeg,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "shotcut";
version = "25.08.16";
src = fetchFromGitHub {
owner = "mltframework";
repo = "shotcut";
tag = "v${finalAttrs.version}";
hash = "sha256-PpMfiqUwG11H+7sLkp3sLzDWjco1OxYqGyfMAFojSPU=";
};
nativeBuildInputs = [
pkg-config
cmake
qt6.wrapQtAppsHook
];
buildInputs = [
SDL2
frei0r
ladspaPlugins
gettext
qt6Packages.mlt
fftw
qt6.qtbase
qt6.qttools
qt6.qtmultimedia
qt6.qtcharts
qt6.qtwayland
];
env.NIX_CFLAGS_COMPILE = "-DSHOTCUT_NOUPGRADE";
cmakeFlags = [ "-DSHOTCUT_VERSION=${finalAttrs.version}" ];
patches = [
(replaceVars ./fix-mlt-ffmpeg-path.patch {
inherit ffmpeg;
mlt = qt6Packages.mlt;
})
];
qtWrapperArgs = [
"--set FREI0R_PATH ${frei0r}/lib/frei0r-1"
"--set LADSPA_PATH ${ladspaPlugins}/lib/ladspa"
"--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath ([ SDL2 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ jack1 ])
}"
];
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
'';
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
description = "Free, open source, cross-platform video editor";
longDescription = ''
An official binary for Shotcut, which includes all the
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.
'';
homepage = "https://shotcut.org";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
woffs
peti
];
platforms = lib.platforms.unix;
mainProgram = "shotcut";
};
})