summary refs log tree commit diff
path: root/flake.template.nix
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-12-10 22:43:45 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2023-12-11 00:18:31 +0100
commita995adb16af4247ed3a9ccc11c61b25567a3385d (patch)
treec01b2d43d1b361b6c30e146f89ee2146a6dc89aa /flake.template.nix
parentRun prettier (diff)
downloadserver-a995adb16af4247ed3a9ccc11c61b25567a3385d.tar.xz
Add git rev patch for nix
Diffstat (limited to '')
-rw-r--r--flake.template.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/flake.template.nix b/flake.template.nix
index d1d30d7b..2f72a7db 100644
--- a/flake.template.nix
+++ b/flake.template.nix
@@ -22,6 +22,7 @@
 			#makeCacheWritable = true;
 			postPatch = ''
 				substituteInPlace package.json --replace 'npx patch-package' '${pkgs.nodePackages.patch-package}/bin/patch-package'
+				substituteInPlace src/bundle/start.ts --replace 'execSync("git rev-parse HEAD").toString().trim()' '"${self.rev or "dirty"}"'
 			'';
 		};
 		devShell = pkgs.mkShell {