2021-06-11 07:53:34 +00:00
|
|
|
{ lib, fetchFromGitHub, stdenv
|
|
|
|
, ffmpeg, frei0r, sox, gtk3, python3, ladspaPlugins
|
|
|
|
, gobject-introspection, makeWrapper, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flowblade";
|
2023-07-11 09:32:03 +00:00
|
|
|
version = "2.10.0.4";
|
2021-06-11 07:53:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jliljebl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-11 09:32:03 +00:00
|
|
|
sha256 = "sha256-IjutDCp+wrvXSQzvELuPMdW/16Twi0ee8VjdAFyi+OE=";
|
2021-06-11 07:53:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-06-22 11:49:31 +00:00
|
|
|
ffmpeg frei0r sox gtk3 ladspaPlugins
|
2021-06-11 07:53:34 +00:00
|
|
|
(python3.withPackages (ps: with ps; [ mlt pygobject3 dbus-python numpy pillow ]))
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gobject-introspection makeWrapper wrapGAppsHook ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
cp -a ${src}/flowblade-trunk $out/flowblade
|
|
|
|
|
|
|
|
makeWrapper $out/flowblade/flowblade $out/bin/flowblade \
|
|
|
|
--set FREI0R_PATH ${frei0r}/lib/frei0r-1 \
|
|
|
|
--set LADSPA_PATH ${ladspaPlugins}/lib/ladspa \
|
2023-06-27 12:34:01 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ ffmpeg ]}" \
|
2021-06-11 07:53:34 +00:00
|
|
|
''${gappsWrapperArgs[@]}
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Multitrack Non-Linear Video Editor";
|
|
|
|
homepage = "https://jliljebl.github.io/flowblade/";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ polygon ];
|
|
|
|
};
|
|
|
|
}
|