1 #!/usr/bin/env nix-shell
2 #!nix-shell -I nixpkgs=./. -i bash -p nix-update -p prefetch-npm-deps
7 package
="$UPDATE_NIX_ATTR_PATH"
9 src
=$
(nix-build
-A "$package".src
--no-out-link)
10 npmDepsFile
=$
(nix-instantiate
--eval -A "$package".npmDepsFile
)
14 src
/Avalonia.DesignerSupport
/Remote
/HtmlTransport
/webapp \
15 tests
/Avalonia.DesignerSupport.Tests
/Remote
/HtmlTransport
/webapp \
16 src
/Browser
/Avalonia.Browser
/webapp
19 echo " path = \"$path\";"
20 echo prefetch-npm-deps
"$src/$path/package-lock.json" >&2
21 hash=$
(prefetch-npm-deps
"$src/$path/package-lock.json")
22 echo " hash = \"$hash\";"
27 "$(nix-build -A "$package".fetch-deps --no-out-link)"