cachebusting and templating

This commit is contained in:
xenofem 2022-05-26 14:43:03 -04:00
parent b90220da22
commit 4f9d46cc28
8 changed files with 214 additions and 206 deletions

View file

@ -42,7 +42,8 @@
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/${name} \
--set TRANSBEAM_STATIC_DIR ${./static}
--set TRANSBEAM_STATIC_DIR ${./static} \
--set TRANSBEAM_CACHEBUSTER ${builtins.substring 0 8 (builtins.hashString "sha256" (toString ./static))}
'';
};