mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{ lib, fetchFromGitHub, stdenv
|
|
, ffmpeg, frei0r, sox, gtk3, python3, ladspaPlugins
|
|
, gobject-introspection, makeWrapper, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flowblade";
|
|
version = "2.14.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jliljebl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kyW/vYKGy/tgHmev8LgJbGugfKkzKFwLZStQQfWYPuQ=";
|
|
};
|
|
|
|
buildInputs = [
|
|
ffmpeg frei0r sox gtk3 ladspaPlugins
|
|
(python3.withPackages (ps: with ps; [ mlt pygobject3 dbus-python numpy pillow libusb1 ]))
|
|
];
|
|
|
|
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 \
|
|
--prefix PATH : "${lib.makeBinPath [ ffmpeg ]}" \
|
|
''${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 ];
|
|
mainProgram = "flowblade";
|
|
};
|
|
}
|