blob: abaece86572a01d7abf223a09f17ee31f9bfb0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
(use-modules (guix packages)
((guix licenses) #:prefix license:)
(guix gexp)
(guix build-system copy)
(elenq graphics))
(define %source-dir (dirname (current-filename)))
(define-public templates
(package
(name "templates")
(version "1.0.0")
(source (local-file %source-dir #:recursive? #t))
(build-system copy-build-system)
(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_
(files '("share")))))
(home-page "http://git.elenq.tech/")
(synopsis "Pandoc templates for ElenQ Technology")
(description "A set of well configured Pandoc templates for ElenQ
Technology's documents.")
(license license:asl2.0)))
templates
|