aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-03-26 09:30:12 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-03-26 09:32:06 +0100
commit4d425851437bebbd8099d182aa28502f8cdc7899 (patch)
tree4662e17b76ae7c192a76e7fd04ca71433cd794e6
parent3dcb164e4b450d833ba5cf6c7cc03cd51a917e34 (diff)
downloadmatterbridge-4d425851437bebbd8099d182aa28502f8cdc7899.tar.gz
matterbridge-4d425851437bebbd8099d182aa28502f8cdc7899.tar.bz2
matterbridge-4d425851437bebbd8099d182aa28502f8cdc7899.zip
Check the matterbridge binary for reproducibility.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--.gitignore1
-rw-r--r--Makefile6
-rw-r--r--matterbridge.tmp.sha5121
3 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 3cfab16..f2b0654 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
\#.*\#
matterbridge
+matterbridge.tmp
matterbridge-744cf07005745312ccddb549bb1bab5ab7031106.tar
matterbridge-744cf07005745312ccddb549bb1bab5ab7031106.tar.xz
matterbridge.toml
diff --git a/Makefile b/Makefile
index ae4abd7..dc8f3a0 100644
--- a/Makefile
+++ b/Makefile
@@ -21,12 +21,14 @@ help:
@echo -en "\tmake test "
@echo "# Test the matterbridge.toml configuration locally"
-matterbridge:
+matterbridge: matterbridge.tmp.sha512
install -m 755 `guix time-machine \
--commit=$(GUIX_COMMIT) \
-- \
build \
- matterbridge`/bin/matterbridge $@
+ matterbridge`/bin/matterbridge $@.tmp
+ sha512sum -c $@.tmp.sha512
+ mv $@.tmp $@
matterbridge-$(GUIX_COMMIT).tar: matterbridge matterbridge.service
tar cf $@ matterbridge \
diff --git a/matterbridge.tmp.sha512 b/matterbridge.tmp.sha512
new file mode 100644
index 0000000..6cf30c4
--- /dev/null
+++ b/matterbridge.tmp.sha512
@@ -0,0 +1 @@
+fcd05978f3910b68153c9551136a023d1ae61ad9b64f05ae358e750693dfcec2c64ad1a6c990e92212813f616d70f16fcf60f01955ead6a129efab8c61ca397f matterbridge.tmp