2020-08-20 17:08:02 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
, SDL2
|
|
|
|
, qttools
|
|
|
|
, xorg
|
|
|
|
, fetchFromGitHub
|
|
|
|
, itstool
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "antimicrox";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "3.3.1";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "AntiMicroX";
|
|
|
|
repo = pname;
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = version;
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-2dCLU+8HR052RfccomOKyyomqaqdPBeq5BxbYtDnlMA=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config itstool ];
|
2020-08-20 17:08:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
qttools
|
|
|
|
xorg.libXtst
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace "/usr/lib/udev/rules.d/" "$out/lib/udev/rules.d/"
|
|
|
|
'';
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI for mapping keyboard and mouse controls to a gamepad";
|
|
|
|
inherit (src.meta) homepage;
|
2022-04-15 01:41:22 +00:00
|
|
|
maintainers = with maintainers; [ sbruder ];
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|