diff --git a/flake.nix b/flake.nix
index 6dd6e58..2ec9ddf 100644
--- a/flake.nix
+++ b/flake.nix
@@ -33,8 +33,17 @@
nattopages = pkgs.stdenv.mkDerivation {
name = "nattopages";
src = cleanSrc;
- phases = "unpackPhase buildPhase";
+ phases = "unpackPhase patchPhase buildPhase";
nativeBuildInputs = [ site ];
+ patchPhase =
+ let
+ cachix = "pain";
+ in
+ ''
+ substituteInPlace templates/default.html \
+ --replace '{+nixstorepath+}' $out \
+ --replace '{+cachix+}' ${cachix}
+ '';
buildPhase = (pkgs.lib.concatStringsSep "\n" vars) + "\n" +
''
site build
diff --git a/templates/default.html b/templates/default.html
index 1510697..6a1b5b4 100644
--- a/templates/default.html
+++ b/templates/default.html
@@ -31,7 +31,8 @@
Site proudly generated by
Hakyll
53EC 089E F230 E47A 83BA 8F81 9594 9BD4 B853 F559
- RSS 2.0
+ RSS 2.0
+ These pages were built in {+nixstorepath+}