{ pkgs ? import <nixpkgs> { }, 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";
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
'';