gnu: createrepo-c: Use gexps.
* gnu/packages/rpm.scm (createrepo-c) [phases]: Use gexps.
This commit is contained in:
		
							parent
							
								
									5ee30cfa84
								
							
						
					
					
						commit
						c162dc379c
					
				
					 1 changed files with 19 additions and 17 deletions
				
			
		| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
;;; GNU Guix --- Functional package management for GNU
 | 
					;;; 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.
 | 
					;;; This file is part of GNU Guix.
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
| 
						 | 
					@ -19,6 +19,7 @@
 | 
				
			||||||
(define-module (gnu packages rpm)
 | 
					(define-module (gnu packages rpm)
 | 
				
			||||||
  #:use-module ((guix licenses) #:prefix license:)
 | 
					  #:use-module ((guix licenses) #:prefix license:)
 | 
				
			||||||
  #:use-module (guix download)
 | 
					  #:use-module (guix download)
 | 
				
			||||||
 | 
					  #:use-module (guix gexp)
 | 
				
			||||||
  #:use-module (guix git-download)
 | 
					  #:use-module (guix git-download)
 | 
				
			||||||
  #:use-module (guix packages)
 | 
					  #:use-module (guix packages)
 | 
				
			||||||
  #:use-module (guix build-system cmake)
 | 
					  #:use-module (guix build-system cmake)
 | 
				
			||||||
| 
						 | 
					@ -157,13 +158,14 @@ information on multiple streams, default data and translations).")
 | 
				
			||||||
                "175na06mjyr8ws5pkknaicpziayj6p0xaanv62d54c6zxl4w484w"))))
 | 
					                "175na06mjyr8ws5pkknaicpziayj6p0xaanv62d54c6zxl4w484w"))))
 | 
				
			||||||
    (build-system cmake-build-system)
 | 
					    (build-system cmake-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:imported-modules (,@%cmake-build-system-modules
 | 
					     (list
 | 
				
			||||||
 | 
					      #:imported-modules `(,@%cmake-build-system-modules
 | 
				
			||||||
                           (guix build python-build-system))
 | 
					                           (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 python-build-system) #:prefix python:)
 | 
				
			||||||
                  (guix build utils))
 | 
					                  (guix build utils))
 | 
				
			||||||
      #:phases
 | 
					      #:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					      #~(modify-phases %standard-phases
 | 
				
			||||||
          (add-after 'unpack 'fix-python-site-prefix
 | 
					          (add-after 'unpack 'fix-python-site-prefix
 | 
				
			||||||
            (lambda* (#:key inputs outputs #:allow-other-keys)
 | 
					            (lambda* (#:key inputs outputs #:allow-other-keys)
 | 
				
			||||||
              (substitute* "src/python/CMakeLists.txt"
 | 
					              (substitute* "src/python/CMakeLists.txt"
 | 
				
			||||||
| 
						 | 
					@ -171,11 +173,11 @@ information on multiple streams, default data and translations).")
 | 
				
			||||||
                 (format #f "set (PYTHON_INSTALL_DIR ~a)~%"
 | 
					                 (format #f "set (PYTHON_INSTALL_DIR ~a)~%"
 | 
				
			||||||
                         (python:site-packages inputs outputs))))))
 | 
					                         (python:site-packages inputs outputs))))))
 | 
				
			||||||
          (add-after 'unpack 'fix-bash-completion-prefix
 | 
					          (add-after 'unpack 'fix-bash-completion-prefix
 | 
				
			||||||
           (lambda* (#:key outputs #:allow-other-keys)
 | 
					            (lambda _
 | 
				
			||||||
              (substitute* "CMakeLists.txt"
 | 
					              (substitute* "CMakeLists.txt"
 | 
				
			||||||
                (("execute_process.*OUTPUT_VARIABLE BASHCOMP_DIR.*")
 | 
					                (("execute_process.*OUTPUT_VARIABLE BASHCOMP_DIR.*")
 | 
				
			||||||
                 (format #f "set (BASHCOMP_DIR ~a\
 | 
					                 (format #f "set (BASHCOMP_DIR ~a\
 | 
				
			||||||
/share/bash-completion/completions)~%" (assoc-ref outputs "out")))))))))
 | 
					/share/bash-completion/completions)~%" #$output))))))))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     (list bash-completion pkg-config python))
 | 
					     (list bash-completion pkg-config python))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue