]> git.scottworley.com Git - srec/blobdiff - default.nix
Ensure ffmpeg-full is available
[srec] / default.nix
index 97b5048f9e2ad9e60d7e94186ae8bbc135c11032..7e5736f9402f67fba8826e8cfd5c8c854a56db3f 100644 (file)
@@ -1,7 +1,7 @@
 { 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";
@@ -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
     '';