From 5723d39535a3102d976cbc817c8ac92f765d0719 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 21 Feb 2021 03:02:44 +0100 Subject: Add a guix package definition --- .guix-channel | 6 +++ Makefile.am | 4 +- guix/vkraus/packages/web-client-with-cache.scm | 56 ++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 .guix-channel create mode 100644 guix/vkraus/packages/web-client-with-cache.scm diff --git a/.guix-channel b/.guix-channel new file mode 100644 index 0000000..20e7991 --- /dev/null +++ b/.guix-channel @@ -0,0 +1,6 @@ +(channel + (version 0) + (directory "guix")) +;; Local Variables: +;; mode: scheme +;; End: \ No newline at end of file diff --git a/Makefile.am b/Makefile.am index 70babd4..bea440d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,9 @@ DISTCHECK_CONFIGURE_FLAGS = CONFIG_SHELL=$(CONFIG_SHELL) SHELL=$(SHELL) ACLOCAL_AMFLAGS = -I m4 nodist_noinst_SCRIPTS = pre-inst-env -EXTRA_DIST = web-client-with-cache.org +EXTRA_DIST = web-client-with-cache.org \ + .guix-channel \ + guix/vkraus/packages/web-client-with-cache.scm moddir = $(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION) godir = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache diff --git a/guix/vkraus/packages/web-client-with-cache.scm b/guix/vkraus/packages/web-client-with-cache.scm new file mode 100644 index 0000000..2a536bf --- /dev/null +++ b/guix/vkraus/packages/web-client-with-cache.scm @@ -0,0 +1,56 @@ +(define-module (vkraus packages web-client-with-cache) + #:use-module (guix packages) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module (guix modules) + #:use-module (guix build-system gnu) + #:use-module (guix build-system copy) + #:use-module (guix build-system trivial) + #:use-module (gnu packages) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages guile) + #:use-module (gnu packages guile-xyz) + #:use-module (gnu packages compression) + #:use-module (gnu packages emacs) + #:use-module (gnu packages emacs-xyz) + #:use-module (gnu packages pkg-config)) + +(define-public (make-web-client-with-cache version commit hash) + (package + (name "guile-web-client-with-cache") + (version version) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://labo.planete-kraus.eu/web-client-with-cache.git") + (commit commit))) + (sha256 (base32 hash)))) + (build-system gnu-build-system) + (native-inputs + `(("emacs" ,emacs) + ("emacs-org" ,emacs-org) + ("autoconf" ,autoconf) + ("autoconf-archive" ,autoconf-archive) + ("automake" ,automake) + ("pkg-config" ,pkg-config) + ("guile-3.0" ,guile-3.0))) + (inputs + `(("guile-3.0" ,guile-3.0))) + (propagated-inputs + `(("guile-3.0" ,guile-3.0))) + (synopsis "A web client for guile, with cache") + (description "Uses client-side Cache-Control, ETag, and +Last-Modified to cache web resources in memory.") + (home-page "https://labo.planete-kraus.eu/web-client-with-cache.git/") + (license 'none))) + +(define-public guile-web-client-with-cache + (make-web-client-with-cache + "0.0.0" + "c9533cb89bc9d209d48314c7d608090b3d6ab7b5" + "15rfdly0qlzdhl43pwdfqyz5plr7z9j4i2w2b0iniwra9jsqjp3q")) -- cgit v1.2.3