diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-04-08 16:11:52 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-04-08 16:49:51 +0200 |
commit | 39ad0e6cf9ed895b88041f8babe59506178a6fcb (patch) | |
tree | 03097668afd4edc431915788ca2e27f73bc33589 | |
parent | bac00c062e9ad0bc5235a7124bc624965bed684c (diff) |
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | guix.scm | 25 |
2 files changed, 35 insertions, 0 deletions
@@ -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 |