mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #223953 from paveloom/obs-teleport
This commit is contained in:
commit
a735718ba8
@ -36,6 +36,8 @@
|
||||
|
||||
obs-source-record = callPackage ./obs-source-record.nix { };
|
||||
|
||||
obs-teleport = callPackage ./obs-teleport { };
|
||||
|
||||
obs-vaapi = callPackage ./obs-vaapi { };
|
||||
|
||||
obs-vkcapture = callPackage ./obs-vkcapture.nix {
|
||||
|
@ -0,0 +1,54 @@
|
||||
{ buildGoModule
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, libjpeg
|
||||
, nix-update-script
|
||||
, obs-studio
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "obs-teleport";
|
||||
version = "0.6.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fzwoch";
|
||||
repo = "obs-teleport";
|
||||
rev = version;
|
||||
sha256 = "sha256-J3Q0AQV21jh+Pth5wXbGbryrx7Mg65rAQVapyGBls7Y=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-2rlEMkdcD+46EpQhUpLIGMzqvlyMFYK/XQYV9DJZxao=";
|
||||
|
||||
buildInputs = [
|
||||
libjpeg
|
||||
obs-studio
|
||||
];
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
CGO_CFLAGS = "-I${obs-studio}/include/obs";
|
||||
CGO_LDFLAGS = "-L${obs-studio}/lib -lobs -lobs-frontend-api";
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
go build -buildmode=c-shared -o obs-teleport.so .
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/obs-plugins
|
||||
mv obs-teleport.so $out/lib/obs-plugins
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "An OBS Studio plugin for an open NDI-like replacement";
|
||||
homepage = "https://github.com/fzwoch/obs-teleport";
|
||||
maintainers = [ lib.maintainers.paveloom ];
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = obs-studio.meta.platforms;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user