aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/misc/antimicroX/default.nix
blob: cb5496d450c4f0a4f0f002f45a6cad61ab27c14b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ mkDerivation
, lib
, cmake
, extra-cmake-modules
, pkgconfig
, SDL2
, qtbase
, qttools
, qtx11extras
, xorg
, fetchFromGitHub
, itstool
}:

mkDerivation rec {
  pname = "antimicroX";
  version = "3.0.1";

  src = fetchFromGitHub {
    owner = "juliagoda";
    repo = "antimicroX";
    rev = version;
    sha256 = "05asxlkgb4cgvpcyksw1cx8cz8nzi8hmw8b91lw92892j7a2r7wj";
  };

  nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig itstool ];
  buildInputs = [
    SDL2
    qtbase
    qttools
    qtx11extras
    xorg.libX11
    xorg.libXtst
    xorg.libXi
  ];

  meta = with lib; {
    description = "GUI for mapping keyboard and mouse controls to a gamepad";
    inherit (src.meta) homepage;
    maintainers = with maintainers; [ jb55 ];
    license = licenses.gpl3Plus;
    platforms = with platforms; linux;
  };
}