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";
|
2023-02-02 02:59:03 +00:00
|
|
|
version = "3.3.3";
|
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;
|
2023-02-02 02:59:03 +00:00
|
|
|
sha256 = "sha256-svEk+IFttkCXmoAOFH3k2rRC/OL9HXOLiuGrCh10YNc=";
|
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;
|
2022-04-04 15:08:22 +00:00
|
|
|
maintainers = with maintainers; [ sbruder ];
|
2020-06-29 16:17:24 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|