(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