nixpkgs/pkgs/development/libraries/libwacom/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, glib
, pkg-config
, udev
, libgudev
, python3
2023-02-22 01:13:30 +00:00
, valgrind
}:
2014-01-19 22:14:11 +00:00
stdenv.mkDerivation rec {
pname = "libwacom";
2023-01-28 19:19:23 +00:00
version = "2.6.0";
2019-09-20 15:30:30 +00:00
outputs = [ "out" "dev" ];
2014-01-19 22:14:11 +00:00
src = fetchFromGitHub {
owner = "linuxwacom";
repo = "libwacom";
rev = "libwacom-${version}";
2023-01-28 19:19:23 +00:00
sha256 = "sha256-9zqW6zPrFcxv/yAAtFgdVavKVMXeDBoMP3E/XriUcT0=";
2014-01-19 22:14:11 +00:00
};
2023-02-22 01:13:30 +00:00
postPatch = ''
patchShebangs test/check-files-in-git.sh
'';
nativeBuildInputs = [
pkg-config
meson
ninja
python3
];
2019-09-20 15:30:30 +00:00
buildInputs = [
glib
udev
libgudev
];
2019-09-20 15:30:30 +00:00
2023-02-22 01:13:30 +00:00
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
mesonFlags = [
2023-02-22 01:13:30 +00:00
"-Dtests=${if doCheck then "enabled" else "disabled"}"
];
2014-01-19 22:14:11 +00:00
2023-02-22 01:13:30 +00:00
nativeCheckInputs = [
valgrind
] ++ (with python3.pkgs; [
libevdev
pytest
pyudev
]);
meta = with lib; {
2014-01-19 22:14:11 +00:00
platforms = platforms.linux;
homepage = "https://linuxwacom.github.io/";
description = "Libraries, configuration, and diagnostic tools for Wacom tablets running under Linux";
2020-04-14 12:55:10 +00:00
maintainers = teams.freedesktop.members;
license = licenses.mit;
2014-01-19 22:14:11 +00:00
};
}