summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@igalia.com>2015-08-06 12:22:08 +0200
committerMark H Weaver <mhw@netris.org>2015-08-08 14:09:56 -0400
commite0477b73912d7c25acf1983ed6fc7ecc5234c038 (patch)
treef2939549a42a517eabf694a4c2ccfed62daaa78c
parent7a75b02ae54b054cdc614d1cb5af7ed26c4f63c3 (diff)
downloadguix-e0477b73912d7c25acf1983ed6fc7ecc5234c038.tar.gz
gnu: Add libusb-compat.
* gnu/packages/libusb.scm (libusb-compat): New variable.

Modified-By: Mark H Weaver <mhw@netris.org>
-rw-r--r--gnu/packages/libusb.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index 17f71eba8d..98c18fd52c 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
+;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -21,6 +22,7 @@
   #:use-module (gnu packages)
   #:use-module (guix licenses)
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages gnupg)
@@ -53,6 +55,32 @@
 devices on various operating systems.")
     (license lgpl2.1+)))
 
+(define-public libusb-compat
+  (package
+    (name "libusb-compat")
+    (version "0.1.5")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append "mirror://sourceforge/libusb/"
+                          name "-" (version-major+minor version) "/"
+                          name "-" version "/"
+                          name "-" version ".tar.bz2"))
+      (sha256
+       (base32
+        "0nn5icrfm9lkhzw1xjvaks9bq3w6mjg86ggv3fn7kgi4nfvg8kj0"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libusb" ,libusb)))
+    (home-page "http://www.libusb.org")
+    (synopsis "Compatibility shim for libusb")
+    (description
+     "Libusb-compat provides a shim allowing applications based on older
+version of libusb to run with newer libusb.")
+    (license lgpl2.1+)))
+
 (define-public libmtp
   (package
     (name "libmtp")