diff options
author | Z572 <873216071@qq.com> | 2021-09-06 18:44:38 +0800 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-09-13 22:27:01 +0200 |
commit | 1ada5e28ba695825d6287b6ac6a69f016777eb40 (patch) | |
tree | 37a2a65969a00c2e8223d52b4055e7faba97bc42 /gnu/packages/emacs-xyz.scm | |
parent | 9afa15f6902f5bf5d65a607ca3800b46eff8f69e (diff) | |
download | guix-1ada5e28ba695825d6287b6ac6a69f016777eb40.tar guix-1ada5e28ba695825d6287b6ac6a69f016777eb40.tar.gz |
gnu: emacs-telega-server: use make-flags instead of modifying makefile.
* gnu/packages/emacs-xyz.scm (emacs-telega-server)[arguments]: Add the
#:make-flags argument. and remove substitute* makefile.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages/emacs-xyz.scm')
-rw-r--r-- | gnu/packages/emacs-xyz.scm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 1750f00e87..9bb0470516 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -26675,18 +26675,17 @@ other @code{helm-type-file} sources such as @code{helm-locate}.") "emacs-telega-test-env.patch")))) (build-system gnu-build-system) (arguments - `(#:phases + `(#:make-flags + (list (string-append "CC=" ,(cc-for-target)) + (string-append "INSTALL_PREFIX=" + (assoc-ref %outputs "out") "/bin")) + #:phases (modify-phases %standard-phases (add-before 'configure 'enter-subdirectory (lambda _ (chdir "server") #t)) (replace 'configure (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) - (substitute* "Makefile" - (("CC=cc") ,(string-append "CC=" (cc-for-target))) - (("^(INSTALL_PREFIX=).*$" _all prefix) - (string-append prefix out "/bin\n"))) - (substitute* "run_tests.py" (("^(TELEGA_SERVER = ).*$" _all prefix) (string-append prefix |