From: Scott Worley Date: Wed, 1 Oct 2025 00:25:10 +0000 (-0700) Subject: Ensure ffmpeg-full is available X-Git-Url: http://git.scottworley.com/srec/commitdiff_plain/2ab27e00afb12dc5a79862eaa35cf87c7d18284c?hp=26af1081dab515c641b09c45276494f1ef65f44b Ensure ffmpeg-full is available --- diff --git a/default.nix b/default.nix index 97b5048..7e5736f 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,7 @@ { pkgs ? import { }, lint ? false }: -pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage - , gobject-introspection, gtk4, lib, makeDesktopItem, mypy, pylint, pygobject3 - , wrapGAppsHook4, }: +pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full + , gobject-introspection, gtk4, lib, makeDesktopItem, makeWrapper, mypy, pylint + , pygobject3, wrapGAppsHook4, }: buildPythonPackage rec { pname = "srec"; version = "1.0.2"; @@ -11,12 +11,13 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage doCheck = true; checkPhase = "./test.sh"; - nativeBuildInputs = [ gobject-introspection wrapGAppsHook4 ]; + nativeBuildInputs = [ gobject-introspection makeWrapper wrapGAppsHook4 ]; nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ]; buildInputs = [ gtk4 ]; pythonPath = [ pygobject3 ]; postInstall = '' + wrapProgram "$out/bin/srec" --prefix PATH : ${ffmpeg-full}/bin cp -r $desktopItem/share $out '';