forked from mirrors/nixpkgs
parent
980c86422e
commit
712adfbb27
|
@ -32,6 +32,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 a new issue