[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/13: gnu: android: Add android-udev-rules package.
From: |
Ludovic Courtès |
Subject: |
04/13: gnu: android: Add android-udev-rules package. |
Date: |
Tue, 3 Oct 2017 11:18:20 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 0ad03eae380f5d3fda4018c07c338727a8943fda
Author: Maxim Cournoyer <address@hidden>
Date: Fri Sep 29 09:17:03 2017 -0400
gnu: android: Add android-udev-rules package.
* gnu/packages/android.scm (android-udev-rules): Add package.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/android.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index be3f50a..d9be335 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2016 Marius Bakke <address@hidden>
;;; Copyright © 2017 Julien Lepiller <address@hidden>
;;; Copyright © 2017 Hartmut Goebel <address@hidden>
+;;; Copyright © 2017 Maxim Cournoyer <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -25,6 +26,7 @@
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
+ #:use-module (guix build-system trivial)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (gnu packages gnupg)
@@ -305,6 +307,42 @@ of device actions, such as installing and debugging apps,
and it provides access
to a Unix shell that can run commands on the connected device or emulator.")
(license license:asl2.0)))
+(define-public android-udev-rules
+ (package
+ (name "android-udev-rules")
+ (version "20170910")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/M0Rf30/android-udev-rules")
+ (commit version)))
+ (file-name (string-append name "-" version "-checkout"))
+ (sha256
+ (base32 "0vic40n3si0dxag3dyc3hi3pn7cjpm5q378x8v2ys19n3iz9fp1g"))))
+ (build-system trivial-build-system)
+ (native-inputs `(("source" ,source)))
+ (arguments
+ '(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((source (assoc-ref %build-inputs "source")))
+ (install-file (string-append source "/51-android.rules")
+ (string-append %output "/lib/udev/rules.d"))))))
+ (home-page "https://github.com/M0Rf30/android-udev-rules")
+ (synopsis "udev rules for Android devices")
+ (description "Provides a set of udev rules to allow using Android devices
+with tools such as @command{adb} and @command{fastboot} without root
+privileges. This package is intended to be added as a rule to the
address@hidden in your @code{operating-system} configuration.
+Additionally, an @code{adbusers} group must be defined and your user added to
+it.
+
address@hidden installing this package will not have any effect.} It is meant
+to be passed to the @code{udev} service.")
+ (license license:gpl3+)))
+
(define-public git-repo
(package
(name "git-repo")
- 02/13: gnu: services: Add cgit., (continued)
- 02/13: gnu: services: Add cgit., Ludovic Courtès, 2017/10/03
- 07/13: gnu: Add otf2., Ludovic Courtès, 2017/10/03
- 05/13: gnu: cflow: Fix preprocess option., Ludovic Courtès, 2017/10/03
- 10/13: gnu: Add scorep-openmpi., Ludovic Courtès, 2017/10/03
- 06/13: gnu: Add papi., Ludovic Courtès, 2017/10/03
- 03/13: Update e-mail for Theodoros Foradis., Ludovic Courtès, 2017/10/03
- 11/13: gnu: openmpi: Add "debug" output., Ludovic Courtès, 2017/10/03
- 12/13: gnu: mgba: Update to 0.6.1., Ludovic Courtès, 2017/10/03
- 08/13: gnu: Add opari2., Ludovic Courtès, 2017/10/03
- 13/13: gnu: qtox: Update to 1.12.0., Ludovic Courtès, 2017/10/03
- 04/13: gnu: android: Add android-udev-rules package.,
Ludovic Courtès <=