grafana-agent: migrate to prefetch-yarn-deps

This commit is contained in:
Felix Buehler 2023-11-25 13:09:01 +01:00
parent 3832b75e4e
commit dd6c677c4d

View file

@ -2,7 +2,7 @@
, buildGoModule
, fetchFromGitHub
, fetchYarnDeps
, fixup_yarn_lock
, prefetch-yarn-deps
, grafana-agent
, nixosTests
, nodejs
@ -43,7 +43,7 @@ buildGoModule rec {
"-X ${prefix}.BuildDate=1980-01-01T00:00:00Z"
];
nativeBuildInputs = [ fixup_yarn_lock nodejs yarn ];
nativeBuildInputs = [ prefetch-yarn-deps nodejs yarn ];
tags = [
"builtinassets"
@ -62,7 +62,7 @@ buildGoModule rec {
export HOME="$TMPDIR"
pushd web/ui
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn config --offline set yarn-offline-mirror $frontendYarnOfflineCache
yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules