{ final, prev, sources, ... }: { spice-record = final.python3Packages.buildPythonPackage rec { pname = "spicerecord"; inherit (sources.spice-record) src version; propagatedBuildInputs = with final.python3Packages; [ libvirt pygobject3 ]; buildInputs = with final; [ spice-gtk gst_all_1.gst-plugins-base ]; nativeBuildInputs = with final; [ gobject-introspection wrapGAppsHook3 makeWrapper ]; postInstall = '' wrapProgram $out/bin/spice-record \ --prefix PATH : ${final.lib.makeBinPath (with final; [ ffmpeg-headless ])} ''; pyproject = true; build-system = [ final.python3Packages.setuptools ]; }; }