[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu: rmlint: Update package style.
From: |
guix-commits |
Subject: |
06/08: gnu: rmlint: Update package style. |
Date: |
Fri, 11 Aug 2023 15:00:48 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 3a1547db2e20af576de31f5ae488a9e066d693d9
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Aug 6 02:00:00 2023 +0200
gnu: rmlint: Update package style.
* gnu/packages/disk.scm (rmlint)[arguments]:
Rewrite as G-expressions.
[native-inputs, inputs]: Remove input labels.
---
gnu/packages/disk.scm | 71 ++++++++++++++++++++++++---------------------------
1 file changed, 34 insertions(+), 37 deletions(-)
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 6104b6cd02..8e9104ecfb 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -1143,45 +1143,42 @@ LVM D-Bus API).")
"0sk4v1chnk2hvzi92svyf8qgamfs4fvial90qwx4a7dayxhkbsm4"))))
(build-system scons-build-system)
(arguments
- `(#:scons ,scons-python2
- #:scons-flags (list (string-append "--prefix=" %output)
- (string-append "--actual-prefix=" %output))
- #:tests? #f ; No tests?
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'scons-propagate-environment
- (lambda* (#:key inputs #:allow-other-keys)
- ;; TODO: `rmlint --gui` fails with
- ;; "Failed to load shredder: No module named 'shredder'".
- ;; The GUI might also need extra dependencies, such as
- ;; python-gobject, python-cairo, dconf, librsvg, gtksourceview3.
- (substitute* "lib/cmdline.c"
- (("const char \\*commands\\[\\] = \\{\"python3\", \"python\",
NULL\\};")
- (string-append
- "const char *commands[] = {\""
- (assoc-ref inputs "python") "/bin/python"
- "\", \"python\", NULL};")))
- ;; By design, SCons does not, by default, propagate
- ;; environment variables to subprocesses. See:
- ;;
<http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
- ;; Here, we modify the SConstruct file to arrange for
- ;; environment variables to be propagated.
- (substitute* "SConstruct"
- (("^env = Environment\\(.*\\)" all)
- (string-append
- all
- "\nenv['ENV']=os.environ"))))))))
+ (list
+ #:scons scons-python2
+ #:scons-flags
+ #~(list (string-append "--prefix=" #$output)
+ (string-append "--actual-prefix=" #$output))
+ #:tests? #f ; no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'scons-propagate-environment
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; TODO: `rmlint --gui` fails with
+ ;; "Failed to load shredder: No module named 'shredder'".
+ ;; The GUI might also need extra dependencies, such as
+ ;; python-gobject, python-cairo, dconf, librsvg, gtksourceview3.
+ (substitute* "lib/cmdline.c"
+ (("const char \\*commands\\[\\] = \\{\"python3\", \"python\",
NULL\\};")
+ (string-append "const char *commands[] = {\""
+ (search-input-file inputs "/bin/python")
+ "\", \"python\", NULL};")))
+ ;; By design, SCons does not, by default, propagate
+ ;; environment variables to subprocesses. See:
+ ;;
<http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
+ ;; Here, we modify the SConstruct file to arrange for
+ ;; environment variables to be propagated.
+ (substitute* "SConstruct"
+ (("^env = Environment\\(.*\\)" all)
+ (string-append all "\nenv['ENV']=os.environ"))))))))
(native-inputs
- `(("pkg-config" ,pkg-config)
- ("glib:bin" ,glib "bin")
- ("python-sphinx" ,python-sphinx)))
+ (list `(,glib "bin") pkg-config python-sphinx))
(inputs
- `(("python" ,python-wrapper)
- ("glib" ,glib)
- ("libelf" ,libelf)
- ("elfutils" ,elfutils)
- ("json-glib" ,json-glib)
- ("libblkid" ,util-linux "lib")))
+ (list elfutils
+ glib
+ json-glib
+ libelf
+ python-wrapper
+ `(,util-linux "lib")))
(home-page "https://rmlint.rtfd.org")
(synopsis "Remove duplicates and other lint from the file system")
(description "@command{rmlint} finds space waste and other broken things
- branch master updated (77251c5f5a -> 19a7a824c3), guix-commits, 2023/08/11
- 05/08: gnu: rmlint: Update to 2.10.2., guix-commits, 2023/08/11
- 04/08: gnu: postgresql@11: Update to 11.21., guix-commits, 2023/08/11
- 08/08: gnu: rhythmbox: Update to 3.4.7., guix-commits, 2023/08/11
- 01/08: gnu: conky: Update to 1.19.3., guix-commits, 2023/08/11
- 07/08: gnu: rmlint: Remove libelf., guix-commits, 2023/08/11
- 06/08: gnu: rmlint: Update package style.,
guix-commits <=
- 03/08: gnu: postgresql@13: Update to 13.12., guix-commits, 2023/08/11
- 02/08: gnu: postgresql: Update to 15.4., guix-commits, 2023/08/11