nixpkgs/pkgs/tools/misc/antimicrox/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
878 B
Nix
Raw Normal View History

{ mkDerivation
, lib
, cmake
, extra-cmake-modules
2021-01-17 03:51:22 +00:00
, pkg-config
, SDL2
, qttools
, xorg
, fetchFromGitHub
, itstool
}:
mkDerivation rec {
pname = "antimicrox";
2022-02-25 01:44:14 +00:00
version = "3.2.2";
src = fetchFromGitHub {
owner = "AntiMicroX";
repo = pname;
rev = version;
2022-02-25 01:44:14 +00:00
sha256 = "sha256-8DCQAgwXaJxRl6NxzSCow9XpP4HhHw3hlPXvmqpq/nc=";
};
2021-01-17 03:51:22 +00:00
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; [ jb55 sbruder ];
license = licenses.gpl3Plus;
platforms = with platforms; linux;
};
}