mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
9833d56c24
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken Tool is still WIP but this is one of the first results. I manually audited the results and removed some results that were not valid. Note that some of these packages maybe should have more constrained platforms set instead of broken set, but I think not being perfectly correct is better than just keep trying to build all these things and never succeeding. Some observations: - Some darwin builds require XCode tools - aarch64-linux builds sometimes suffer from using gcc9 - gcc9 is getting older and misses some new libraries/features - Sometimes tools try to do system detection or expect some explicit settings for platforms that are not x86_64-linux
50 lines
1.2 KiB
Nix
50 lines
1.2 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;
|
|
# never built on aarch64-linux since first introduction in nixpkgs
|
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
|
};
|
|
}
|