mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
hidapi: 0.8.0-RC1 -> 0.9.0
This commit is contained in:
parent
3f4144c30a
commit
74ed54cf0c
@ -1,25 +1,29 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, systemd, libusb
|
||||||
, darwin }:
|
, darwin }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "hidapi-0.8.0-rc1";
|
pname = "hidapi";
|
||||||
|
version = "0.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "signal11";
|
owner = "libusb";
|
||||||
repo = "hidapi";
|
repo = "hidapi";
|
||||||
rev = name;
|
rev = "${pname}-${version}";
|
||||||
sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj";
|
sha256 = "1p4g8lgwj4rki6lbn5l6rvwj0xlbn1xfh4d255bg5pvgczmwmc4i";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ ]
|
buildInputs = [ ]
|
||||||
++ stdenv.lib.optionals stdenv.isLinux [ udev libusb ];
|
++ stdenv.lib.optionals stdenv.isLinux [ libusb systemd ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit Cocoa ]);
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit Cocoa ]);
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/signal11/hidapi;
|
|
||||||
description = "Library for communicating with USB and Bluetooth HID devices";
|
description = "Library for communicating with USB and Bluetooth HID devices";
|
||||||
|
homepage = "https://github.com/libusb/hidapi";
|
||||||
# Actually, you can chose between GPLv3, BSD or HIDAPI license (more liberal)
|
# Actually, you can chose between GPLv3, BSD or HIDAPI license (more liberal)
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
Loading…
Reference in New Issue
Block a user