about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/evtest-qt/default.nix
blob: 42000afd3d7e7b95654d064b9f1a0b6cf9f926cc (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
30
31
32
33
34
35
36
37
38
39
{ mkDerivation, lib, qtbase, cmake, fetchFromGitHub, fetchpatch, unstableGitUpdater }:

mkDerivation rec {
  pname = "evtest-qt";
  version = "0.2.0-unstable-2023-09-13";

  src = fetchFromGitHub {
    owner = "Grumbel";
    repo = pname;
    rev = "fb087f4d3d51377790f1ff30681c48031bf23145";
    hash = "sha256-gE47x1J13YZUVyB0b4VRyESIVCm3GbOXp2bX0TP97UU=";
    fetchSubmodules = true;
  };

  patches = [
    # Fix build against gcc-13:
    #   https://github.com/Grumbel/evtest-qt/pull/14
    (fetchpatch {
      name = "gcc-13.patch";
      url = "https://github.com/Grumbel/evtest-qt/commit/975dedcfd60853bd329f34d48ce4740add8866eb.patch";
      hash = "sha256-gR/9oVhO4G9i7dn+CjvDAQN0KLXoX/fatpE0W3gXDc0=";
    })
  ];

  nativeBuildInputs = [ cmake ];

  buildInputs = [ qtbase ];

  passthru.updateScript = unstableGitUpdater {};

  meta = with lib; {
    description = "Simple input device tester for linux with Qt GUI";
    mainProgram = "evtest-qt";
    homepage = "https://github.com/Grumbel/evtest-qt";
    maintainers = with maintainers; [ alexarice ];
    platforms = platforms.linux;
    license = licenses.gpl3;
  };
}