2024-04-21 15:54:59 +00:00
|
|
|
{ mkDerivation, lib, qtbase, cmake, fetchFromGitHub, fetchpatch, unstableGitUpdater }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "evtest-qt";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.2.0-unstable-2023-09-13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Grumbel";
|
|
|
|
repo = pname;
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "fb087f4d3d51377790f1ff30681c48031bf23145";
|
|
|
|
hash = "sha256-gE47x1J13YZUVyB0b4VRyESIVCm3GbOXp2bX0TP97UU=";
|
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater {};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple input device tester for linux with Qt GUI";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "evtest-qt";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Grumbel/evtest-qt";
|
|
|
|
maintainers = with maintainers; [ alexarice ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|