diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-08-20 12:59:56 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-08-20 13:06:11 +0200 |
commit | 7ed52500c945f5cba8a93dd0df7b89f9bca6b6e7 (patch) | |
tree | 8d2b0b38f00a477273035d7d1a6d4350d7910c2e /gnu/packages | |
parent | dc704e3b6c36672cec6810d26c795d7464821cea (diff) | |
download | guix-7ed52500c945f5cba8a93dd0df7b89f9bca6b6e7.tar.gz |
gnu: emacs-polymode-ansible: Fix package.
* gnu/packages/emacs-xyz.scm (emacs-polymode-ansible)[arguments]: Ignore script for generating keywords from Ansible, but install other files. Require `systemd' library so `validate-compiled-autoloads' doesn't barf. [propagated-inputs]: Add emacs-systemd-mode. Change-Id: If67f8150852089f10cb7be19d96372177ce2e979
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/emacs-xyz.scm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 4ea96401fc..7106111613 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -22504,19 +22504,27 @@ literate programming tools for exporting, weaving and tangling.") (build-system emacs-build-system) (arguments (list - #:include #~(list "maint/poly-ansible-jinja2-filters-generator.el") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'move-source-files (lambda _ (let ((el-files (find-files "./lisp" ".*\\.el$"))) (for-each (lambda (f) (copy-file f (basename f))) - el-files))))))) + el-files)))) + ;; Autoloads file include a reference to "systemd-autoload-regexp". + ;; Require `systemd' to load its definition and let + ;; `validate-compiled-autoloads' phase run peacefully. + (add-after 'make-autoloads 'require-systemd-mode + (lambda _ + (substitute* "polymode-ansible-autoloads.el" + ((";;; Code:" lead) + (string-append lead "\n(require 'systemd)")))))))) (propagated-inputs (list emacs-ansible emacs-ansible-doc emacs-jinja2-mode emacs-polymode + emacs-systemd-mode emacs-yaml-mode)) (properties '((upstream-name . "poly-ansible"))) (home-page "https://gitlab.com/mavit/poly-ansible/") |