mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
b5c1deca8a
He prefers to contribute to his own nixpkgs fork triton. Since he is still marked as maintainer in many packages this leaves the wrong impression he still maintains those.
28 lines
859 B
Nix
28 lines
859 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb
|
|
, darwin }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "hidapi-0.8.0-rc1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "signal11";
|
|
repo = "hidapi";
|
|
rev = name;
|
|
sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ ]
|
|
++ stdenv.lib.optionals stdenv.isLinux [ udev libusb ];
|
|
|
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit Cocoa ]);
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/signal11/hidapi;
|
|
description = "Library for communicating with USB and Bluetooth HID devices";
|
|
# Actually, you can chose between GPLv3, BSD or HIDAPI license (more liberal)
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|