Unverified Commit 4fdd6052 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

Merge pull request #252191 from pschmitt/obs-replay-source

parents fd74c71d 049871af
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,8 @@

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

  obs-replay-source = qt6Packages.callPackage ./obs-replay-source.nix { };

  obs-rgb-levels-filter = callPackage ./obs-rgb-levels-filter.nix { };

  obs-scale-to-sound = callPackage ./obs-scale-to-sound.nix { };
+40 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, cmake
, libcaption
, obs-studio
, qtbase
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "obs-replay-source";
  version = "1.6.12";

  src = fetchFromGitHub {
    owner = "exeldro";
    repo = "obs-replay-source";
    rev = finalAttrs.version;
    sha256 = "sha256-MzugH6r/jY5Kg7GIR8/o1BN36FenBzMnqrPUceJmbPs=";
  };

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

  postInstall = ''
    mkdir -p "$out/lib" "$out/share"
    mv "$out/obs-plugins/64bit" "$out/lib/obs-plugins"
    rm -rf "$out/obs-plugins"
    mv "$out/data" "$out/share/obs"
  '';

  dontWrapQtApps = true;

  meta = with lib; {
    description = "Replay source for OBS studio";
    homepage = "https://github.com/exeldro/obs-replay-source";
    license = licenses.gpl2Only;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pschmitt ];
  };
})
+30 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, cmake
, re2c
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libcaption";
  version = "0.7";

  src = fetchFromGitHub {
    owner = "szatmary";
    repo = "libcaption";
    rev = finalAttrs.version;
    sha256 = "sha256-OBtxoFJF0cxC+kfSK8TIKIdLkmCh5WOJlI0fejnisJo=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ re2c ];

  meta = with lib; {
    description = "Free open-source CEA608 / CEA708 closed-caption encoder/decoder";
    homepage = "https://github.com/szatmary/libcaption";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ pschmitt ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -22533,6 +22533,8 @@ with pkgs;
    then pkgs.libcanberra
    else pkgs.libcanberra-gtk2;
  libcaption = callPackage ../development/libraries/libcaption { };
  libcbor = callPackage ../development/libraries/libcbor { };
  libccd = callPackage ../development/libraries/libccd { };