depot/third_party/nixpkgs/pkgs/tools/misc/antimicrox/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

43 lines
878 B
Nix

{ mkDerivation
, lib
, cmake
, extra-cmake-modules
, pkg-config
, SDL2
, qttools
, xorg
, fetchFromGitHub
, itstool
}:
mkDerivation rec {
pname = "antimicrox";
version = "3.2.1";
src = fetchFromGitHub {
owner = "AntiMicroX";
repo = pname;
rev = version;
sha256 = "sha256-dj/6bIJfNt/ZBVucjLRu2FYLoyuWZ72MB20eVCRvo0Y=";
};
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;
};
}