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