about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2019-08-29 16:37:21 +0800
committerGitHub <noreply@github.com>2019-08-29 16:37:21 +0800
commit5e3334bc55c63b520b951082f8e2fb986b619695 (patch)
treed1c5557ac23b822786ccd8b87d89d3fb4a78af7f /pkgs/development/libraries
parent8d1510abfb592339e13ce8f6db6f29c1f8b72924 (diff)
parent74ed54cf0c4a589343ae56a4bcd78cb2036b44d9 (diff)
downloadnixlib-5e3334bc55c63b520b951082f8e2fb986b619695.tar
nixlib-5e3334bc55c63b520b951082f8e2fb986b619695.tar.gz
nixlib-5e3334bc55c63b520b951082f8e2fb986b619695.tar.bz2
nixlib-5e3334bc55c63b520b951082f8e2fb986b619695.tar.lz
nixlib-5e3334bc55c63b520b951082f8e2fb986b619695.tar.xz
nixlib-5e3334bc55c63b520b951082f8e2fb986b619695.tar.zst
nixlib-5e3334bc55c63b520b951082f8e2fb986b619695.zip
Merge pull request #67612 from peterhoeg/u/hidapi
hidapi: 0.8.0-RC1 -> 0.9.0
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/hidapi/default.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/pkgs/development/libraries/hidapi/default.nix b/pkgs/development/libraries/hidapi/default.nix
index 05e180161c0b..28e96244ba5c 100644
--- a/pkgs/development/libraries/hidapi/default.nix
+++ b/pkgs/development/libraries/hidapi/default.nix
@@ -1,25 +1,29 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, systemd, libusb
 , darwin }:
 
 stdenv.mkDerivation rec {
-  name = "hidapi-0.8.0-rc1";
+  pname = "hidapi";
+  version = "0.9.0";
 
   src = fetchFromGitHub {
-    owner = "signal11";
+    owner = "libusb";
     repo = "hidapi";
-    rev = name;
-    sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj";
+    rev = "${pname}-${version}";
+    sha256 = "1p4g8lgwj4rki6lbn5l6rvwj0xlbn1xfh4d255bg5pvgczmwmc4i";
   };
 
   nativeBuildInputs = [ autoreconfHook pkgconfig ];
+
   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 ]);
 
   meta = with stdenv.lib; {
-    homepage = https://github.com/signal11/hidapi;
     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)
     license = licenses.bsd3;
     platforms = platforms.unix;