From 39ad0e6cf9ed895b88041f8babe59506178a6fcb Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 8 Apr 2024 16:11:52 +0200 Subject: guix: add package that pandoc can find --- README.md | 10 ++++++++++ guix.scm | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 guix.scm diff --git a/README.md b/README.md index cafde25..985470d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,16 @@ Run `install.sh` script and it'll automagically link all the templates to your This method doesn't work on a non-Unix-like OS. +### Guix + +Just use Guix and do it easier: + +``` bash +guix install -f guix.scm +``` + +This will install the files where they should be and set `XDG_DATA_HOME` +properly. ## Usage diff --git a/guix.scm b/guix.scm new file mode 100644 index 0000000..f7fecae --- /dev/null +++ b/guix.scm @@ -0,0 +1,25 @@ +(use-modules (guix packages) + ((guix licenses) #:prefix license:) + (guix gexp) + (guix build-system copy)) + +(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) + (arguments (list #:install-plan ''(("pandoc" "/share/pandoc")))) + (native-search-paths + (list (search-path-specification + (variable "XDG_DATA_HOME") + (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 -- cgit v1.2.3