14 stdenv.mkDerivation rec {
15 pname = "obs-input-overlay";
17 src = fetchFromGitHub {
19 repo = "input-overlay";
21 hash = "sha256-9HqEz+KnTt8MyhwqFWjalbl3H/DCzumckXMctCGhs3o=";
22 fetchSubmodules = true;
25 nativeBuildInputs = [ cmake pkg-config ];
27 obs-studio libuiohook qtbase SDL2
28 xorg.libX11 xorg.libXau xorg.libXdmcp xorg.libXtst xorg.libXext
29 xorg.libXi xorg.libXt xorg.libXinerama libxkbcommon libxkbfile
33 "-DCMAKE_CXX_FLAGS=-msse4.1"
37 sed -i '/set(CMAKE_CXX_FLAGS "-march=native")/d' 'source/CMakeLists.txt'
41 mkdir $out/lib $out/share
42 mv $out/obs-plugins/64bit $out/lib/obs-plugins
43 rm -rf $out/obs-plugins
44 mv $out/data $out/share/obs
47 dontWrapQtApps = true;
50 description = "Show keyboard, gamepad and mouse input on stream";
51 homepage = "https://github.com/univrsal/input-overlay";
52 maintainers = with maintainers; [ glittershark ];
53 license = licenses.gpl2;
54 platforms = platforms.linux;
55 # never built on aarch64-linux since first introduction in nixpkgs
56 broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64;