Unverified Commit 73684a65 authored by Nathanael Robbins's avatar Nathanael Robbins Committed by Franz Pletz
Browse files

obs-studio-plugins.obs-source-record: init at 2022-11-10

parent 260fb8b4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@

  obs-pipewire-audio-capture = callPackage ./obs-pipewire-audio-capture.nix { };

  obs-source-record = callPackage ./obs-source-record.nix { };

  obs-vkcapture = callPackage ./obs-vkcapture.nix {
    obs-vkcapture32 = pkgsi686Linux.obs-studio-plugins.obs-vkcapture;
  };
+34 −0
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, cmake, obs-studio }:

stdenv.mkDerivation rec {
  pname = "obs-source-record";
  version = "unstable-2022-11-10";

  src = fetchFromGitHub {
    owner = "exeldro";
    repo = "obs-source-record";
    rev = "4a543d3577d56a27f5f2b9aa541a466b37dafde0";
    sha256 = "sha256-LoMgrWZ7r6lu2fisNvqrAiFvxWQQDE6lSxUHkMB/ZPY=";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [
    obs-studio
  ];

  cmakeFlags = [
    "-DBUILD_OUT_OF_TREE=On"
  ];

  postInstall = ''
    rm -rf $out/{data,obs-plugins}
  '';

  meta = with lib; {
    description = "OBS Studio plugin to make sources available to record via a filter";
    homepage = "https://github.com/exeldro/obs-source-record";
    maintainers = with maintainers; [ robbins ];
    license = licenses.gpl2Only;
    platforms = [ "x86_64-linux" ];
  };
}