diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-01-10 22:48:57 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-01-10 22:48:57 +0100 |
commit | 8bc6f1eab3288c3a6ae15a050c8d9fd84aacbf47 (patch) | |
tree | a86d21d514f12b6d7e5ff688ba894374e4512c85 /guix.scm | |
parent | fcc05b650e4feb9efc6d2d309ab52e03f9632a90 (diff) |
depend on elenq-logos and remove tikz
Diffstat (limited to 'guix.scm')
-rw-r--r-- | guix.scm | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1,7 +1,8 @@ (use-modules (guix packages) ((guix licenses) #:prefix license:) (guix gexp) - (guix build-system copy)) + (guix build-system copy) + (elenq graphics)) (define %source-dir (dirname (current-filename))) @@ -11,7 +12,21 @@ (version "1.0.0") (source (local-file %source-dir #:recursive? #t)) (build-system copy-build-system) - (arguments (list #:install-plan ''(("pandoc" "/share/pandoc")))) + (inputs (list elenq-logos)) + (arguments + (list + #:install-plan ''(("pandoc" "/share/pandoc")) + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'set-url + (lambda _ + (for-each + (lambda (f) + (substitute* f + (("\\$elenq-directory\\$") + (string-append #$elenq-logos "/share/elenq/")))) + (list "pandoc/templates/elenq-article.latex" + "pandoc/templates/elenq-book.latex"))))))) (native-search-paths (list (search-path-specification (variable "XDG_DATA_DIRS") ;; Not implemented in pandoc _yet_ |