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:
parent
102f4b583a
commit
a995adb16a
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user