mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
6715b097e6
Diff: https://github.com/linuxwacom/libwacom/compare/libwacom-2.7.0...libwacom-2.8.0 Changelog: https://github.com/linuxwacom/libwacom/blob/libwacom-2.8.0/NEWS
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, glib
|
|
, pkg-config
|
|
, udev
|
|
, libgudev
|
|
, python3
|
|
, valgrind
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libwacom";
|
|
version = "2.8.0";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxwacom";
|
|
repo = "libwacom";
|
|
rev = "libwacom-${version}";
|
|
hash = "sha256-VjFZBlOIG1L4dXPJ8DWxrbfVqdQC+X7zVXFryo43FFc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs test/check-files-in-git.sh
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
udev
|
|
libgudev
|
|
];
|
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform valgrind;
|
|
|
|
mesonFlags = [
|
|
"-Dtests=${if doCheck then "enabled" else "disabled"}"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
valgrind
|
|
] ++ (with python3.pkgs; [
|
|
libevdev
|
|
pytest
|
|
pyudev
|
|
]);
|
|
|
|
meta = with lib; {
|
|
platforms = platforms.linux;
|
|
homepage = "https://linuxwacom.github.io/";
|
|
changelog = "https://github.com/linuxwacom/libwacom/blob/${src.rev}/NEWS";
|
|
description = "Libraries, configuration, and diagnostic tools for Wacom tablets running under Linux";
|
|
maintainers = teams.freedesktop.members;
|
|
license = licenses.mit;
|
|
};
|
|
}
|