aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/rpm.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-08-02 14:29:52 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-08-02 15:10:01 -0400
commitc162dc379ccbfebcd15ae98791ce4e68249322b7 (patch)
tree8a52cfb2615bacd89c1e26f242146f7985eefb6f /gnu/packages/rpm.scm
parent5ee30cfa84a7d66cab5803c334e81579f6797200 (diff)
downloadguix-c162dc379ccbfebcd15ae98791ce4e68249322b7.tar
guix-c162dc379ccbfebcd15ae98791ce4e68249322b7.tar.gz
gnu: createrepo-c: Use gexps.
* gnu/packages/rpm.scm (createrepo-c) [phases]: Use gexps.
Diffstat (limited to 'gnu/packages/rpm.scm')
-rw-r--r--gnu/packages/rpm.scm36
1 files changed, 19 insertions, 17 deletions
diff --git a/gnu/packages/rpm.scm b/gnu/packages/rpm.scm
index 431c2b8e5d..0a785382d5 100644
--- a/gnu/packages/rpm.scm
+++ b/gnu/packages/rpm.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -19,6 +19,7 @@
(define-module (gnu packages rpm)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix build-system cmake)
@@ -157,25 +158,26 @@ information on multiple streams, default data and translations).")
"175na06mjyr8ws5pkknaicpziayj6p0xaanv62d54c6zxl4w484w"))))
(build-system cmake-build-system)
(arguments
- `(#:imported-modules (,@%cmake-build-system-modules
+ (list
+ #:imported-modules `(,@%cmake-build-system-modules
(guix build python-build-system))
- #:modules ((guix build cmake-build-system)
+ #:modules '((guix build cmake-build-system)
((guix build python-build-system) #:prefix python:)
(guix build utils))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-python-site-prefix
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (substitute* "src/python/CMakeLists.txt"
- (("EXECUTE_PROCESS.*OUTPUT_VARIABLE PYTHON_INSTALL_DIR.*")
- (format #f "set (PYTHON_INSTALL_DIR ~a)~%"
- (python:site-packages inputs outputs))))))
- (add-after 'unpack 'fix-bash-completion-prefix
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "CMakeLists.txt"
- (("execute_process.*OUTPUT_VARIABLE BASHCOMP_DIR.*")
- (format #f "set (BASHCOMP_DIR ~a\
-/share/bash-completion/completions)~%" (assoc-ref outputs "out")))))))))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-python-site-prefix
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (substitute* "src/python/CMakeLists.txt"
+ (("EXECUTE_PROCESS.*OUTPUT_VARIABLE PYTHON_INSTALL_DIR.*")
+ (format #f "set (PYTHON_INSTALL_DIR ~a)~%"
+ (python:site-packages inputs outputs))))))
+ (add-after 'unpack 'fix-bash-completion-prefix
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("execute_process.*OUTPUT_VARIABLE BASHCOMP_DIR.*")
+ (format #f "set (BASHCOMP_DIR ~a\
+/share/bash-completion/completions)~%" #$output))))))))
(native-inputs
(list bash-completion pkg-config python))
(inputs