summaryrefslogtreecommitdiff
path: root/guix.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix.scm')
-rw-r--r--guix.scm19
1 files changed, 17 insertions, 2 deletions
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_