Merge pull request #87521 from glittershark/init-obs-input-overlay

This commit is contained in:
Franz Pletz 2022-11-13 15:35:42 +01:00 committed by GitHub
commit 9c3248f5b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View File

@ -6,6 +6,8 @@
# - Add plugin to it's own directory (because of future patches).
{
input-overlay = qt6Packages.callPackage ./input-overlay.nix { };
looking-glass-obs = callPackage ./looking-glass-obs.nix { };
obs-backgroundremoval = callPackage ./obs-backgroundremoval { };

View File

@ -0,0 +1,47 @@
{ stdenv, lib
, fetchFromGitHub
, cmake
, pkg-config
, obs-studio
, libuiohook
, qtbase
, xorg
, libxkbcommon
, libxkbfile
}:
stdenv.mkDerivation rec {
pname = "obs-input-overlay";
version = "5.0.0";
src = fetchFromGitHub {
owner = "univrsal";
repo = "input-overlay";
rev = "v${version}";
sha256 = "sha256-kpVAvQpBU8TxHAFcx/ok67++4MHh5saoRHJc5XpY4YQ=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
obs-studio libuiohook qtbase
xorg.libX11 xorg.libXau xorg.libXdmcp xorg.libXtst xorg.libXext
xorg.libXi xorg.libXt xorg.libXinerama libxkbcommon libxkbfile
];
postInstall = ''
mkdir $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 = "Show keyboard, gamepad and mouse input on stream ";
homepage = "https://github.com/univrsal/input-overlay";
maintainers = with maintainers; [ glittershark ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}