2021-09-16 16:41:09 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
|
|
|
, pkg-config
|
|
|
|
, udev
|
|
|
|
, libgudev
|
|
|
|
, python3
|
2023-02-22 01:13:30 +00:00
|
|
|
, valgrind
|
2021-09-16 16:41:09 +00:00
|
|
|
}:
|
2014-01-19 22:14:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libwacom";
|
2023-09-25 18:54:43 +00:00
|
|
|
version = "2.8.0";
|
2019-09-20 15:30:30 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2014-01-19 22:14:11 +00:00
|
|
|
|
2018-10-15 06:37:16 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxwacom";
|
|
|
|
repo = "libwacom";
|
|
|
|
rev = "libwacom-${version}";
|
2023-09-25 18:54:43 +00:00
|
|
|
hash = "sha256-VjFZBlOIG1L4dXPJ8DWxrbfVqdQC+X7zVXFryo43FFc=";
|
2014-01-19 22:14:11 +00:00
|
|
|
};
|
|
|
|
|
2023-02-22 01:13:30 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs test/check-files-in-git.sh
|
|
|
|
'';
|
|
|
|
|
2021-09-16 16:41:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
];
|
2019-09-20 15:30:30 +00:00
|
|
|
|
2021-09-16 16:41:09 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
udev
|
|
|
|
libgudev
|
|
|
|
];
|
2019-09-20 15:30:30 +00:00
|
|
|
|
2023-05-19 13:51:18 +00:00
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform valgrind;
|
2023-02-22 01:13:30 +00:00
|
|
|
|
2021-09-16 16:41:09 +00:00
|
|
|
mesonFlags = [
|
2023-02-22 01:13:30 +00:00
|
|
|
"-Dtests=${if doCheck then "enabled" else "disabled"}"
|
2021-09-16 16:41:09 +00:00
|
|
|
];
|
2014-01-19 22:14:11 +00:00
|
|
|
|
2023-02-22 01:13:30 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
valgrind
|
|
|
|
] ++ (with python3.pkgs; [
|
|
|
|
libevdev
|
|
|
|
pytest
|
|
|
|
pyudev
|
|
|
|
]);
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-01-19 22:14:11 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://linuxwacom.github.io/";
|
2023-02-22 01:14:21 +00:00
|
|
|
changelog = "https://github.com/linuxwacom/libwacom/blob/${src.rev}/NEWS";
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Libraries, configuration, and diagnostic tools for Wacom tablets running under Linux";
|
2020-04-14 12:55:10 +00:00
|
|
|
maintainers = teams.freedesktop.members;
|
2018-10-11 12:30:46 +00:00
|
|
|
license = licenses.mit;
|
2014-01-19 22:14:11 +00:00
|
|
|
};
|
|
|
|
}
|