nixpkgs/pkgs/by-name/fl/flowblade/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

75 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
stdenv,
ffmpeg,
frei0r,
sox,
gtk3,
python3,
ladspaPlugins,
gobject-introspection,
makeWrapper,
wrapGAppsHook3,
}:
stdenv.mkDerivation rec {
pname = "flowblade";
version = "2.16.3";
src = fetchFromGitHub {
owner = "jliljebl";
repo = pname;
rev = "v${version}";
sha256 = "sha256-WXB071lndw4/APTgwxNVjmYBvzMXZdLn1OaWqBXjW2Q=";
};
buildInputs = [
ffmpeg
frei0r
sox
gtk3
ladspaPlugins
(python3.withPackages (
ps: with ps; [
mlt
pygobject3
dbus-python
numpy
pillow
libusb1
]
))
];
nativeBuildInputs = [
gobject-introspection
makeWrapper
wrapGAppsHook3
];
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";
};
}