From c162dc379ccbfebcd15ae98791ce4e68249322b7 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 2 Aug 2022 14:29:52 -0400 Subject: gnu: createrepo-c: Use gexps. * gnu/packages/rpm.scm (createrepo-c) [phases]: Use gexps. --- gnu/packages/rpm.scm | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'gnu/packages/rpm.scm') 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 +;;; Copyright © 2021, 2022 Maxim Cournoyer ;;; ;;; 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 @@ (define-public createrepo-c "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 -- cgit v1.2.3