depot/third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/input-overlay.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

47 lines
1.1 KiB
Nix

{ 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;
};
}