summaryrefslogtreecommitdiff
path: root/overlays/spice-record.nix
blob: 0ec2799d09e5beb4579c2c525f3ca11d04040cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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 ];
  };
}