1{
2 lib,
3 stdenv,
4 fetchurl,
5 automake,
6 libusb1,
7}:
8let
9 # This package should be updated together with libphidget22extra
10 version = "1.22.20250324";
11in
12stdenv.mkDerivation {
13 pname = "libphidget22";
14 inherit version;
15
16 src = fetchurl {
17 url = "https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22/libphidget22-${version}.tar.gz";
18 hash = "sha256-FR/+b4z73LtGQdT4gypre9SZmZSiWzP/Q+00uia1lhA=";
19 };
20
21 nativeBuildInputs = [ automake ];
22
23 buildInputs = [ libusb1 ];
24
25 strictDeps = true;
26
27 meta = {
28 description = "Phidget Inc sensor boards and electronics Library";
29 homepage = "https://www.phidgets.com/docs/OS_-_Linux";
30 license = lib.licenses.bsd3;
31 maintainers = with lib.maintainers; [ mksafavi ];
32 platforms = lib.platforms.linux;
33 };
34}