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