2 files changed, 3 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index f0f6389a..a6d7568e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -18,10 +18,11 @@
meta.mainProgram = "start-bundle";
#nativeBuildInputs = with pkgs; [ python3 ];
- npmDepsHash = "sha256-9yyOPogFi71Dcm7DKe4FJJz9d6uDtJsliDR+b32KKvA=";
+ npmDepsHash = "sha256-W8OPoBHfoJYg5S+jldYd63qx8knxSHvzePrre+dwpHk=";
#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 {
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 {
|