Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
29 lines
936 B
Bash
Executable File
29 lines
936 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -I nixpkgs=./. -i bash -p nix-update -p prefetch-npm-deps
|
|
#shellcheck shell=bash
|
|
|
|
set -euo pipefail
|
|
|
|
export NIXPKGS_ALLOW_INSECURE=1 # uses EOL dotnet-sdk-7
|
|
package="$UPDATE_NIX_ATTR_PATH"
|
|
nix-update "$package" --src-only
|
|
src=$(nix-build -A "$package".src --no-out-link)
|
|
npmDepsFile=$(nix-instantiate --eval -A "$package".npmDepsFile)
|
|
(
|
|
echo '['
|
|
for path in \
|
|
src/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp \
|
|
tests/Avalonia.DesignerSupport.Tests/Remote/HtmlTransport/webapp \
|
|
src/Browser/Avalonia.Browser/webapp
|
|
do
|
|
echo ' {'
|
|
echo " path = \"$path\";"
|
|
echo prefetch-npm-deps "$src/$path/package-lock.json" >&2
|
|
hash=$(prefetch-npm-deps "$src/$path/package-lock.json")
|
|
echo " hash = \"$hash\";"
|
|
echo ' }'
|
|
done
|
|
echo ']'
|
|
) > "$npmDepsFile"
|
|
"$(nix-build -A "$package".fetch-deps --no-out-link)"
|