summary refs log tree commit diff
path: root/pkgs/tools/misc/antimicro/default.nix
blob: 02d65597f7491f5579ce60dcb880fa5575268836 (plain) (blame)
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
{ stdenv, cmake, pkgconfig, SDL2, qtbase, qttools, makeQtWrapper, xorg, fetchFromGitHub }:

stdenv.mkDerivation rec {
  name = "antimicro-${version}";
  version = "2.23";

  src = fetchFromGitHub {
    owner = "AntiMicro";
    repo = "antimicro";
    rev = "${version}";
    sha256 = "1q40ayxwwyq85lc89cnj1cm2nar625h4vhh8dvmb2qcxczaggf4v";
  };

  buildInputs = [
    cmake pkgconfig SDL2 qtbase qttools xorg.libXtst makeQtWrapper
  ];

  postInstall = ''
    wrapQtProgram $out/bin/antimicro
  '';

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