From e7934d6ed660960e78a183018740463ac3442aa0 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 12 Jan 2024 23:16:12 +0000 Subject: Make repository a guix channel. * .guix-authorizations, .guix-channel, .guix/tamil-computing-website.scm: New files. --- .guix-authorizations | 4 ++++ .guix-channel | 3 +++ .guix/tamil-computing-website.scm | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .guix-authorizations create mode 100644 .guix-channel create mode 100644 .guix/tamil-computing-website.scm 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 -- cgit v1.2.3