From 8bc6f1eab3288c3a6ae15a050c8d9fd84aacbf47 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Fri, 10 Jan 2025 22:48:57 +0100 Subject: depend on elenq-logos and remove tikz --- guix.scm | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'guix.scm') diff --git a/guix.scm b/guix.scm index 43ddc5f..abaece8 100644 --- a/guix.scm +++ b/guix.scm @@ -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_ -- cgit v1.2.3