summary refs log tree commit diff
path: root/pkgs/development/libraries/hidapi
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-10-24 16:35:01 -0700
committerWilliam A. Kennington III <william@wkennington.com>2014-10-24 16:37:36 -0700
commit7b6e70c72dbe637ba0ff7a4ef92be7073e9dfa86 (patch)
tree50bc2da541f54e75d11429d8f3634565982dbce7 /pkgs/development/libraries/hidapi
parent5204bdaf6b713d7fded8d13ca8299ab48b339ecf (diff)
downloadnixlib-7b6e70c72dbe637ba0ff7a4ef92be7073e9dfa86.tar
nixlib-7b6e70c72dbe637ba0ff7a4ef92be7073e9dfa86.tar.gz
nixlib-7b6e70c72dbe637ba0ff7a4ef92be7073e9dfa86.tar.bz2
nixlib-7b6e70c72dbe637ba0ff7a4ef92be7073e9dfa86.tar.lz
nixlib-7b6e70c72dbe637ba0ff7a4ef92be7073e9dfa86.tar.xz
nixlib-7b6e70c72dbe637ba0ff7a4ef92be7073e9dfa86.tar.zst
nixlib-7b6e70c72dbe637ba0ff7a4ef92be7073e9dfa86.zip
hidapi: Add derivation
Diffstat (limited to 'pkgs/development/libraries/hidapi')
-rw-r--r--pkgs/development/libraries/hidapi/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/libraries/hidapi/default.nix b/pkgs/development/libraries/hidapi/default.nix
new file mode 100644
index 000000000000..a6259ac23cc9
--- /dev/null
+++ b/pkgs/development/libraries/hidapi/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb }:
+
+stdenv.mkDerivation rec {
+  name = "hidapi-0.8.0-rc1";
+
+  src = fetchFromGitHub {
+    owner = "signal11";
+    repo = "hidapi";
+    rev = name;
+    sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj";
+  };
+
+  buildInputs = [ autoreconfHook pkgconfig udev libusb ];
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/signal11/hidapi;
+    description = "for communicating with USB and Bluetooth HID devices";
+    license = licenses.bsd3;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ wkennington ];
+  };
+}