[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/96: gnu: usbutils: Use G-Expressions.
From: |
guix-commits |
Subject: |
52/96: gnu: usbutils: Use G-Expressions. |
Date: |
Wed, 19 Apr 2023 21:41:12 -0400 (EDT) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 05b22726ea34b7e934390d4fb794e80c189fb872
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Tue Mar 21 16:05:23 2023 +0000
gnu: usbutils: Use G-Expressions.
* gnu/packages/linux.scm (usbutils): Use G-Expressions.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/linux.scm | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 03d77014ac..c6fce0992f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2379,23 +2379,22 @@ slabtop, tload, top, vmstat, w, watch and sysctl.")
(build-system gnu-build-system)
(outputs (list "out" "python"))
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'bootstrap 'patch-bootstrap-scripts
- (lambda _
- (substitute* "usbhid-dump/bootstrap"
- (("/bin/sh") (which "sh")))))
- (add-after 'install 'separate-python-output
- ;; Separating one Python script shaves more than 106 MiB from :out.
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (out:python (assoc-ref outputs "python")))
- (for-each (lambda (file)
- (let ((old (string-append out "/" file))
- (new (string-append out:python "/" file)))
- (mkdir-p (dirname new))
- (rename-file old new)))
- (list "bin/lsusb.py"))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'bootstrap 'patch-bootstrap-scripts
+ (lambda _
+ (substitute* "usbhid-dump/bootstrap"
+ (("/bin/sh") (which "sh")))))
+ (add-after 'install 'separate-python-output
+ ;; Separating one Python script shaves more than 106 MiB from :out.
+ (lambda _
+ (for-each (lambda (file)
+ (let ((old (string-append #$output "/" file))
+ (new (string-append #$output:python "/" file)))
+ (mkdir-p (dirname new))
+ (rename-file old new)))
+ (list "bin/lsusb.py")))))))
(inputs
(list eudev libusb python))
(native-inputs
- 07/96: gnu: python-setuptools: Update to 67.6.1., (continued)
- 07/96: gnu: python-setuptools: Update to 67.6.1., guix-commits, 2023/04/19
- 20/96: gnu: python-execnet: Update to 1.9.0-1.d6aa1a5., guix-commits, 2023/04/19
- 08/96: gnu: python-wheel: Update to 0.40.0., guix-commits, 2023/04/19
- 12/96: gnu: python-typing-extensions: Use pyproject-build-system., guix-commits, 2023/04/19
- 18/96: gnu: python-hatchling: Update to 1.14.0., guix-commits, 2023/04/19
- 21/96: gnu: python-pytest-benchmark: Update to 4.0.0., guix-commits, 2023/04/19
- 27/96: gnu: poetry: Update to 1.1.12., guix-commits, 2023/04/19
- 30/96: gnu: Add python-asynctest., guix-commits, 2023/04/19
- 33/96: gnu: python-pytest-asyncio: Update to 0.21.0., guix-commits, 2023/04/19
- 36/96: gnu: python-aiohttp: Update to 3.8.4., guix-commits, 2023/04/19
- 52/96: gnu: usbutils: Use G-Expressions.,
guix-commits <=
- 16/96: gnu: python-flit-scm: Update to 1.7.0., guix-commits, 2023/04/19
- 01/96: gnu: python-xyz: Move some packages to (gnu packages python-build)., guix-commits, 2023/04/19
- 05/96: gnu: python-tomli-w: Use pyproject-build-system., guix-commits, 2023/04/19
- 02/96: gnu: Add python-trove-classifiers., guix-commits, 2023/04/19
- 14/96: gnu: python-typing-extensions: Move to (gnu packages python-build)., guix-commits, 2023/04/19
- 17/96: gnu: python-hatchling: Move to (gnu packages python-build)., guix-commits, 2023/04/19
- 19/96: gnu: Add python-hatch-vcs., guix-commits, 2023/04/19
- 22/96: gnu: opendht: Fix build., guix-commits, 2023/04/19
- 24/96: gnu: python-packaging: Remove labels., guix-commits, 2023/04/19
- 26/96: gnu: python-isort: Use gexps., guix-commits, 2023/04/19