2020-06-29 18:17:24 +02:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
2021-01-17 04:51:22 +01:00
|
|
|
, pkg-config
|
2020-06-29 18:17:24 +02:00
|
|
|
, SDL2
|
|
|
|
, qttools
|
|
|
|
, xorg
|
|
|
|
, fetchFromGitHub
|
|
|
|
, itstool
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
2021-10-31 15:45:40 +01:00
|
|
|
pname = "antimicrox";
|
|
|
|
version = "3.2.0";
|
2020-06-29 18:17:24 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-10-31 15:45:40 +01:00
|
|
|
owner = "AntiMicroX";
|
|
|
|
repo = pname;
|
2020-06-29 18:17:24 +02:00
|
|
|
rev = version;
|
2021-10-31 15:45:40 +01:00
|
|
|
sha256 = "sha256-brG3DTpWRYmDemTeteuuNbF0JoDAXdcFwO12JC6/0/Q=";
|
2020-06-29 18:17:24 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config itstool ];
|
2020-06-29 18:17:24 +02:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
qttools
|
|
|
|
xorg.libXtst
|
|
|
|
];
|
|
|
|
|
2021-10-31 15:45:40 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace "/usr/lib/udev/rules.d/" "$out/lib/udev/rules.d/"
|
|
|
|
'';
|
|
|
|
|
2020-06-29 18:17:24 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI for mapping keyboard and mouse controls to a gamepad";
|
|
|
|
inherit (src.meta) homepage;
|
2021-10-31 15:45:40 +01:00
|
|
|
maintainers = with maintainers; [ jb55 sbruder ];
|
2020-06-29 18:17:24 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|