Archived
1
0
Fork 0

gnu: gn: Use G-expression.

* gnu/packages/build-tools.scm (gn)[arguments]: Convert to G-expression.
This commit is contained in:
Marius Bakke 2022-11-28 04:39:59 +01:00
parent e069db7e30
commit 6f0a8371fe
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -219,10 +219,12 @@ programs and other files depend.")
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases (list #:phases
#~(modify-phases %standard-phases
(add-before 'configure 'set-build-environment (add-before 'configure 'set-build-environment
(lambda _ (lambda _
(setenv "CC" "gcc") (setenv "CXX" "g++") (setenv "CC" "gcc")
(setenv "CXX" "g++")
(setenv "AR" "ar"))) (setenv "AR" "ar")))
(replace 'configure (replace 'configure
(lambda _ (lambda _
@ -244,7 +246,8 @@ programs and other files depend.")
#endif // OUT_LAST_COMMIT_POSITION_H_ #endif // OUT_LAST_COMMIT_POSITION_H_
" "
,revision ,revision ,(string-take commit 12)))))) #$revision #$revision
#$(string-take commit 12))))))
(replace 'build (replace 'build
(lambda _ (lambda _
(invoke "ninja" "-C" "out" "gn" (invoke "ninja" "-C" "out" "gn"
@ -258,9 +261,8 @@ programs and other files depend.")
(invoke "./out/gn_unittests")) (invoke "./out/gn_unittests"))
(format #t "test suite not run~%")))) (format #t "test suite not run~%"))))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(let ((out (assoc-ref outputs "out"))) (install-file "out/gn" (string-append #$output "/bin")))))))
(install-file "out/gn" (string-append out "/bin"))))))))
(native-inputs (native-inputs
(list ninja python-wrapper)) (list ninja python-wrapper))
(synopsis "Generate Ninja build files") (synopsis "Generate Ninja build files")