{ lib, stdenv, fetchurl, automake, libusb1, libphidget22, }: let # This package should be updated together with libphidget22 version = "1.21.20241122"; in stdenv.mkDerivation { pname = "libphidget22extra"; inherit version; src = fetchurl { url = "https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22extra/libphidget22extra-${version}.tar.gz"; hash = "sha256-l8lwEpdR87U2pb0jOAkrI/157B+87QvSVtAtOfedaBo="; }; nativeBuildInputs = [ automake ]; buildInputs = [ libphidget22 libusb1 ]; strictDeps = true; meta = { description = "Phidget Inc sensor boards and electronics extras library"; homepage = "https://www.phidgets.com/docs/OS_-_Linux"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ mksafavi ]; platforms = lib.platforms.linux; }; }