a1390787c3
I no longer use these and don't have much incentive to maintain them :(
43 lines
873 B
Nix
43 lines
873 B
Nix
{ mkDerivation
|
|
, lib
|
|
, cmake
|
|
, extra-cmake-modules
|
|
, pkg-config
|
|
, SDL2
|
|
, qttools
|
|
, xorg
|
|
, fetchFromGitHub
|
|
, itstool
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "antimicrox";
|
|
version = "3.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AntiMicroX";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-8DCQAgwXaJxRl6NxzSCow9XpP4HhHw3hlPXvmqpq/nc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config itstool ];
|
|
buildInputs = [
|
|
SDL2
|
|
qttools
|
|
xorg.libXtst
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace "/usr/lib/udev/rules.d/" "$out/lib/udev/rules.d/"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GUI for mapping keyboard and mouse controls to a gamepad";
|
|
inherit (src.meta) homepage;
|
|
maintainers = with maintainers; [ sbruder ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|