2022-10-21 18:38:19 +00:00
|
|
|
{ lib, stdenv, cmake, libbfd, SDL2, obs-studio
|
2021-07-14 22:03:04 +00:00
|
|
|
, looking-glass-client }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "looking-glass-obs";
|
|
|
|
version = looking-glass-client.version;
|
|
|
|
|
|
|
|
src = looking-glass-client.src;
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
sourceRoot = "${looking-glass-client.src.name}/obs";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ obs-studio libbfd SDL2 ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-mavx";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/obs-plugins/
|
|
|
|
mv liblooking-glass-obs.so $out/lib/obs-plugins/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Plugin for OBS Studio for efficient capturing of looking-glass";
|
|
|
|
homepage = "https://looking-glass.io/docs/stable/obs/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ babbaj ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|