From 1b1699a1771e6c62fd98a758a5851537f6ba1dd9 Mon Sep 17 00:00:00 2001 From: Rodion Goritskov Date: Thu, 23 May 2024 00:26:09 +0400 Subject: gnu: Add baldeagle. * .guix-channel (baldeagle): New variable. * rodion/blogs.scm: Add build file for baldeagle --- rodion/blogs.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 rodion/blogs.scm (limited to 'rodion') diff --git a/rodion/blogs.scm b/rodion/blogs.scm new file mode 100644 index 0000000..18a4840 --- /dev/null +++ b/rodion/blogs.scm @@ -0,0 +1,44 @@ +(define-module (rodion blogs) + #:use-module (guix packages) + #:use-module (guix build-system copy) + #:use-module (guix build-system cmake) + #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (gnu packages version-control) + #:use-module (gnu packages emacs) + #:use-module (guix search-paths) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (rodion packages emacs)) + +(define baldeagle-source-checkout + (let ((vcs-file? (or (git-predicate + (string-append (current-source-directory) + "/../baldeagle")) + (const #t)))) + (local-file "../baldeagle" "baldeagle-checkout" + #:recursive? #t + #:select? vcs-file?))) + +(define %baldeagle-version "1.0.0-git") + +(define-public baldeagle + (package + (name "baldeagle") + (version %baldeagle-version) + (build-system copy-build-system) + (home-page "https://git.goritskov.com/rodion/blogs.git") + (source baldeagle-source-checkout) + (native-inputs (list emacs-minimal git emacs-ox-gemini/latest)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'install 'build-library + (lambda* (#:key inputs #:allow-other-keys) + (setenv "HOME" "/tmp") + (invoke "emacs" "--quick" "--batch" "--script" "publish.el")))) + #:install-plan ''(("baldeagle-public/" "share/baldeagle/") + ("baldeagle-gemini/" "share/baldeagle-gemini/")))) + (license license:expat) + (description "Baldeagle.me blog") + (synopsis "Baldeagle blog."))) -- cgit v1.2.3