diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2023-12-10 22:43:45 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2023-12-11 00:18:31 +0100 |
commit | a995adb16af4247ed3a9ccc11c61b25567a3385d (patch) | |
tree | c01b2d43d1b361b6c30e146f89ee2146a6dc89aa /flake.template.nix | |
parent | Run prettier (diff) | |
download | server-a995adb16af4247ed3a9ccc11c61b25567a3385d.tar.xz |
Add git rev patch for nix
Diffstat (limited to '')
-rw-r--r-- | flake.template.nix | 1 |
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 { |