nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, lib
3, fetchFromGitHub
4, meson
5, ninja
6, glib
7, pkg-config
8, udev
9, libgudev
10, python3
11}:
12
13stdenv.mkDerivation rec {
14 pname = "libwacom";
15 version = "2.2.0";
16
17 outputs = [ "out" "dev" ];
18
19 src = fetchFromGitHub {
20 owner = "linuxwacom";
21 repo = "libwacom";
22 rev = "libwacom-${version}";
23 sha256 = "sha256-SqKXxmyP31kb6ikMQRqPaKNIpeLcMLLEGInCGIx5jWM=";
24 };
25
26 nativeBuildInputs = [
27 pkg-config
28 meson
29 ninja
30 python3
31 ];
32
33 buildInputs = [
34 glib
35 udev
36 libgudev
37 ];
38
39 mesonFlags = [
40 "-Dtests=disabled"
41 ];
42
43 meta = with lib; {
44 platforms = platforms.linux;
45 homepage = "https://linuxwacom.github.io/";
46 description = "Libraries, configuration, and diagnostic tools for Wacom tablets running under Linux";
47 maintainers = teams.freedesktop.members;
48 license = licenses.mit;
49 };
50}