nixpkgs/pkgs/applications/video/obs-studio/plugins/looking-glass-obs.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
750 B
Nix
Raw Normal View History

2021-11-13 22:28:25 +00:00
{ lib, stdenv, cmake, libbfd, SDL2, obs-studio
2021-07-06 17:34:21 +00:00
, looking-glass-client }:
stdenv.mkDerivation {
pname = "looking-glass-obs";
version = looking-glass-client.version;
src = looking-glass-client.src;
sourceRoot = "source/obs";
nativeBuildInputs = [ cmake ];
buildInputs = [ obs-studio libbfd SDL2 ];
NIX_CFLAGS_COMPILE = "-mavx";
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" ];
};
}