summaryrefslogtreecommitdiff
path: root/overlays/spice-record.nix
blob: 06a114da34cdd66a8c8809ebec2e92bed09c84c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ final, prev, sources, ... }: {
  spice-record = prev.python3Packages.buildPythonPackage rec {
    inherit (sources.spice-record) src version pname;
    propagatedBuildInputs = with prev.python3Packages; [ libvirt pygobject3 ];
    buildInputs = with prev; [ spice-gtk gst_all_1.gst-plugins-base ];
    nativeBuildInputs = with prev; [ gobject-introspection wrapGAppsHook3 makeWrapper ];
    postInstall = ''
      wrapProgram $out/bin/spice-record \
        --prefix PATH : ${prev.lib.makeBinPath (with prev; [ ffmpeg-full ])}
    '';
  };
}