9 stdenv.mkDerivation rec {
11 inherit (gotify-server) version;
13 src = gotify-server.src + "/ui";
15 offlineCache = fetchYarnDeps {
16 yarnLock = "${src}/yarn.lock";
17 hash = "sha256-ejHzo6NHCMlNiYePWvfMY9Blb58pj3UQ5PFI0V84flI=";
20 nativeBuildInputs = [ yarn fixup-yarn-lock nodejs-slim ];
23 export HOME=$NIX_BUILD_TOP/fake_home
24 yarn config --offline set yarn-offline-mirror $offlineCache
25 fixup-yarn-lock yarn.lock
26 yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
27 patchShebangs node_modules/
33 export NODE_OPTIONS=--openssl-legacy-provider