Merge pull request #252191 from pschmitt/obs-replay-source
This commit is contained in:
commit
4fdd6052d4
4 changed files with 74 additions and 0 deletions
|
@ -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 { };
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
{ 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
pkgs/development/libraries/libcaption/default.nix
Normal file
30
pkgs/development/libraries/libcaption/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ 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 ];
|
||||
};
|
||||
})
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue