Merge pull request #269873 from Stunkymonkey/gotify-server-migrate-prefetch-yarn-deps

gotify-server: migrate to prefetch-yarn-deps
This commit is contained in:
Nick Cao
2023-11-25 09:30:27 -05:00
committed by GitHub
+3 -3
View File
@@ -1,6 +1,6 @@
{ stdenv
, yarn
, fixup_yarn_lock
, prefetch-yarn-deps
, nodejs-slim
, fetchFromGitHub
, fetchYarnDeps
@@ -18,12 +18,12 @@ stdenv.mkDerivation rec {
hash = "sha256-ejHzo6NHCMlNiYePWvfMY9Blb58pj3UQ5PFI0V84flI=";
};
nativeBuildInputs = [ yarn fixup_yarn_lock nodejs-slim ];
nativeBuildInputs = [ yarn prefetch-yarn-deps nodejs-slim ];
postPatch = ''
export HOME=$NIX_BUILD_TOP/fake_home
yarn config --offline set yarn-offline-mirror $offlineCache
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/
'';