summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.guix-authorizations4
-rw-r--r--.guix-channel3
-rw-r--r--.guix/tamil-computing-website.scm39
3 files changed, 46 insertions, 0 deletions
diff --git a/.guix-authorizations b/.guix-authorizations
new file mode 100644
index 0000000..a8ef8be
--- /dev/null
+++ b/.guix-authorizations
@@ -0,0 +1,4 @@
+(authorizations
+ (version 0)
+ (("7F73 0343 F2F0 9F3C 77BF 79D3 2E25 EE8B 6180 2BB3"
+ (name "arunisaac"))))
diff --git a/.guix-channel b/.guix-channel
new file mode 100644
index 0000000..35e181f
--- /dev/null
+++ b/.guix-channel
@@ -0,0 +1,3 @@
+(channel
+ (version 0)
+ (directory ".guix"))
diff --git a/.guix/tamil-computing-website.scm b/.guix/tamil-computing-website.scm
new file mode 100644
index 0000000..8f623ba
--- /dev/null
+++ b/.guix/tamil-computing-website.scm
@@ -0,0 +1,39 @@
+(define-module (tamil-computing-website)
+ #:use-module ((gnu packages base) #:select (glibc make-glibc-utf8-locales))
+ #:use-module ((gnu packages emacs) #:select (emacs-minimal))
+ #:use-module (guix gexp)
+ #:use-module (guix git-download)
+ #:use-module (guix utils))
+
+(define tamil-computing-website-source
+ (local-file ".."
+ "tamil-computing-website-checkout"
+ #:recursive? #t
+ #:select? (or (git-predicate (dirname (current-source-directory)))
+ (const #t))))
+
+(define tamil-computing-website-gexp
+ (with-imported-modules '((guix build utils))
+ #~(begin
+ (use-modules (guix build utils))
+
+ ;; Set a Tamil locale to support Tamil filenames.
+ (setenv "GUIX_LOCPATH" #$(file-append (make-glibc-utf8-locales
+ glibc
+ #:locales (list "ta_IN")
+ #:name "glibc-tamil-locales")
+ "/lib/locale"))
+ (setlocale LC_ALL "ta_IN.utf8")
+ (setenv "LC_ALL" "ta_IN.utf8")
+
+ (copy-recursively #$tamil-computing-website-source
+ (getcwd))
+ (setenv "HOME" "/tmp")
+ (invoke #$(file-append emacs-minimal "/bin/emacs")
+ "--script" "build.el")
+ (copy-recursively "site" #$output))))
+
+(define-public tamil-computing-website
+ (computed-file "tamil-computing-website" tamil-computing-website-gexp))
+
+tamil-computing-website