summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTom <3460999-ridemybicycle@users.noreply.gitlab.com>2019-01-28 14:21:51 +0000
committerTom <3460999-ridemybicycle@users.noreply.gitlab.com>2019-01-28 14:21:51 +0000
commit2c59de8dcba6ec7ca386391cb139b06e40450bdd (patch)
tree4c8d9afdc1fedc56211dc6356ec5a22d06f5af53 /README.md
parentc2ca4d1bb05a5c3886b433dc10b2c4d55bfa1f29 (diff)
README: include sha256 of the expected release tarball
Advantages of including the SHA256: (i) removes the impurity of the tarball contents being changed (ii) if sha256 is not included, then each nixops deploy triggers a re-download of the tarball Here's how to get the expected hash: $ nix-prefetch-url --unpack 'https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/v2.2.0/nixos-mailserver-v2.2.0.tar.gz' unpacking... [0.0 MiB DL] path is '/nix/store/dwg8xlfnlw7mhr4cjk1viwmm0b249b74-nixos-mailserver-v2.2.0.tar.gz' 0gqzgy50hgb5zmdjiffaqp277a68564vflfpjvk1gv6079zahksc
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 7b79a34..f83215a 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,10 @@ See the [mailing list archive](https://www.freelists.org/archive/snm/)
{ config, pkgs, ... }:
{
imports = [
- (builtins.fetchTarball "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/v2.2.0/nixos-mailserver-v2.2.0.tar.gz")
+ (builtins.fetchTarball {
+ url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/v2.2.0/nixos-mailserver-v2.2.0.tar.gz";
+ sha256 = "0gqzgy50hgb5zmdjiffaqp277a68564vflfpjvk1gv6079zahksc";
+ })
];
mailserver = {