X-Git-Url: http://git.scottworley.com/srec/blobdiff_plain/990069b559e1e3396745a09b2d2fe8612450a37e..23e8dc7fac93a8c8d2ce9e66697085e1ca431c9c:/default.nix 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 '';