nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 mkDerivation,
3 lib,
4 qtbase,
5 cmake,
6 fetchFromGitHub,
7 fetchpatch,
8 unstableGitUpdater,
9}:
10
11mkDerivation rec {
12 pname = "evtest-qt";
13 version = "0.2.0-unstable-2023-09-13";
14
15 src = fetchFromGitHub {
16 owner = "Grumbel";
17 repo = pname;
18 rev = "fb087f4d3d51377790f1ff30681c48031bf23145";
19 hash = "sha256-gE47x1J13YZUVyB0b4VRyESIVCm3GbOXp2bX0TP97UU=";
20 fetchSubmodules = true;
21 };
22
23 patches = [
24 # Fix build against gcc-13:
25 # https://github.com/Grumbel/evtest-qt/pull/14
26 (fetchpatch {
27 name = "gcc-13.patch";
28 url = "https://github.com/Grumbel/evtest-qt/commit/975dedcfd60853bd329f34d48ce4740add8866eb.patch";
29 hash = "sha256-gR/9oVhO4G9i7dn+CjvDAQN0KLXoX/fatpE0W3gXDc0=";
30 })
31 ];
32
33 nativeBuildInputs = [ cmake ];
34
35 buildInputs = [ qtbase ];
36
37 passthru.updateScript = unstableGitUpdater { };
38
39 meta = with lib; {
40 description = "Simple input device tester for linux with Qt GUI";
41 mainProgram = "evtest-qt";
42 homepage = "https://github.com/Grumbel/evtest-qt";
43 maintainers = with maintainers; [ alexarice ];
44 platforms = platforms.linux;
45 license = licenses.gpl3;
46 };
47}