504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
44 lines
905 B
Nix
44 lines
905 B
Nix
{ mkDerivation
|
|
, lib
|
|
, cmake
|
|
, extra-cmake-modules
|
|
, pkg-config
|
|
, SDL2
|
|
, qttools
|
|
, xorg
|
|
, fetchFromGitHub
|
|
, itstool
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "antimicrox";
|
|
version = "3.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AntiMicroX";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-WEtKeQKRZcYpZ4mnFdj4ZRApBuD8fByf11Uu6ylbAcY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config itstool ];
|
|
buildInputs = [
|
|
SDL2
|
|
qttools
|
|
xorg.libXtst
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace "/usr/lib/udev/rules.d/" "$out/lib/udev/rules.d/"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GUI for mapping keyboard and mouse controls to a gamepad";
|
|
inherit (src.meta) homepage;
|
|
maintainers = with maintainers; [ sbruder ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = with platforms; linux;
|
|
mainProgram = "antimicrox";
|
|
};
|
|
}
|