2025-07-16 00:39:01 +00:00

35 lines
798 B
Nix

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