Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Guix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
inf
Guix
Commits
18fe5ef1
Unverified
Commit
18fe5ef1
authored
8 years ago
by
Ricardo Wurmus
Browse files
Options
Downloads
Patches
Plain Diff
gnu: Add libusb4java.
* gnu/packages/libusb.scm (libusb4java): New variable.
parent
b13a7cf8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gnu/packages/libusb.scm
+39
-1
39 additions, 1 deletion
gnu/packages/libusb.scm
with
39 additions
and
1 deletion
gnu/packages/libusb.scm
+
39
−
1
View file @
18fe5ef1
...
...
@@ -2,7 +2,7 @@
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015, 2016
, 2017
Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Theodoros Foradis <theodoros.for@openmailbox.org>
;;;
...
...
@@ -27,12 +27,15 @@ (define-module (gnu packages libusb)
#
:use-module
(
guix
packages
)
#
:use-module
(
guix
utils
)
#
:use-module
(
guix
download
)
#
:use-module
(
guix
git-download
)
#
:use-module
(
guix
build-system
cmake
)
#
:use-module
(
guix
build-system
gnu
)
#
:use-module
(
guix
build-system
glib-or-gtk
)
#
:use-module
(
guix
build-system
python
)
#
:use-module
(
gnu
packages
autotools
)
#
:use-module
(
gnu
packages
gnupg
)
#
:use-module
(
gnu
packages
gtk
)
#
:use-module
(
gnu
packages
java
)
#
:use-module
(
gnu
packages
linux
)
#
:use-module
(
gnu
packages
mp3
)
#
:use-module
(
gnu
packages
pkg-config
)
...
...
@@ -91,6 +94,41 @@ (define-public libusb-compat
version of libusb to run with newer libusb."
)
(
license
lgpl2
.
1
+
)))
(
define-public
libusb4java
;; There is no public release so we take the latest version from git.
(
let
((
commit
"396d642a57678a0d9663b062c980fe100cc0ea1e"
)
(
revision
"1"
))
(
package
(
name
"libusb4java"
)
(
version
(
string-append
"0-"
revision
"."
(
string-take
commit
9
)))
(
source
(
origin
(
method
git-fetch
)
(
uri
(
git-reference
(
url
"https://github.com/usb4java/libusb4java.git"
)
(
commit
commit
)))
(
sha256
(
base32
"0wqgapalhfh9v38ycbl6i2f5lh1wpr6fzwn5dwd0rdacypkd1gml"
))))
(
build-system
cmake-build-system
)
(
arguments
`
(
#
:tests?
#f
; there are no tests
#
:phases
(
modify-phases
%standard-phases
(
add-before
'configure
'set-JAVA_HOME
(
lambda*
(
#
:key
inputs
#
:allow-other-keys
)
(
setenv
"JAVA_HOME"
(
assoc-ref
inputs
"jdk"
))
#t
)))))
(
inputs
`
((
"libusb"
,
libusb
)))
(
native-inputs
`
((
"jdk"
,
icedtea
"jdk"
)))
(
home-page
"https://github.com/usb4java/libusb4java/"
)
(
synopsis
"JNI bindings to libusb"
)
(
description
"This package provides Java JNI bindings to the libusb library for use
with usb4java."
)
(
license
expat
))))
(
define-public
python-pyusb
(
package
(
name
"python-pyusb"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment