1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 02:12:40 +01:00

Add git rev patch for nix

This commit is contained in:
Emma [it/its]@Rory& 2023-12-10 22:43:45 +01:00
parent 102f4b583a
commit a995adb16a
2 changed files with 3 additions and 1 deletions

View File

@ -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 {

View File

@ -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 {