aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-02-28 17:09:10 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-06-15 01:30:21 +0200
commitbbea73d1c21e11e35b252edf41c107536be8e98e (patch)
tree72e9ac4a2e4b87b0877a4d481177860316b60c66 /Makefile
parent048bb1c8ecc552fb4e91d361f108ede65cd7a9b9 (diff)
downloadhaunt-blog-bbea73d1c21e11e35b252edf41c107536be8e98e.tar.gz
haunt-blog-bbea73d1c21e11e35b252edf41c107536be8e98e.tar.bz2
haunt-blog-bbea73d1c21e11e35b252edf41c107536be8e98e.zip
convert.py: remove non-determinism.
Introducing non-deterministic code paths in the conversion is a bad idea because we want the new blog to be as close as possible. And so if humans verify that the old and new website are similar, to be effective, the verification need to be done on top of a deterministic process. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index a7fa739..a716c33 100644
--- a/Makefile
+++ b/Makefile
@@ -15,11 +15,10 @@
CURL ?= curl
BLOG_URL ?= https://blog.replicant.us/page
-CONVERT ?= guix shell \
- python python-beautifulsoup4 \
- python-html2text \
- python-sh \
- -- python3 convert.py
+GUIX_COMMIT ?= b25b94335a3ee8d68d2145da8e5ea0325ecea451
+GUIX_SHELL ?= guix time-machine --commit=$(GUIX_COMMIT) -- shell -C
+GUIX_PACKAGES ?= python python-beautifulsoup4 python-html2text python-sh
+CONVERT ?= $(GUIX_SHELL) $(GUIX_PACKAGES) -- python3 convert.py
SENTINEL =