From 2ab27e00afb12dc5a79862eaa35cf87c7d18284c Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 30 Sep 2025 17:25:10 -0700 Subject: [PATCH] Ensure ffmpeg-full is available --- default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ''; -- 2.50.1