9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
33 lines
975 B
Nix
33 lines
975 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, udev, libusb1
|
|
, darwin }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hidapi";
|
|
version = "0.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libusb";
|
|
repo = "hidapi";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "1nr4z4b10vpbh3ss525r7spz4i43zim2ba5qzfl15dgdxshxxivb";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
buildInputs = [ ]
|
|
++ stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit Cocoa ]);
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Library for communicating with USB and Bluetooth HID devices";
|
|
homepage = "https://github.com/libusb/hidapi";
|
|
maintainers = with maintainers; [ prusnak ];
|
|
# Actually, you can chose between GPLv3, BSD or HIDAPI license (more liberal)
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|