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-06-26 10:26:21 +00:00
|
|
|
version = "3.2.4";
|
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-06-26 10:26:21 +00:00
|
|
|
sha256 = "sha256-catgal3bpWJUcTo0x0V0X3VV87AHO2Dp58IpQ/ILsZ8=";
|
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;
|
|
|
|
};
|
|
|
|
}
|