pass all packages to nix-instantiate for way better performance

This commit is contained in:
Solene Rapenne 2022-08-29 09:18:43 +02:00
parent 1ca79e47c4
commit a2698ce44b
1 changed files with 3 additions and 5 deletions

8
run.sh
View File

@ -23,8 +23,6 @@ then
exit 1
fi
for i in $@
do
echo "DOWNLOADING SOURCES TO BUILD $i"
nix-instantiate --json --eval --strict "${NIXPKGS}" --arg expr "(import <nixpkgs>{}).${i}" | ./mirror.pl
done
set -x
echo "DOWNLOADING SOURCES TO BUILD $@" > /dev/stderr
nix-instantiate --json --eval --strict "${NIXPKGS}" --arg expr "with import <nixpkgs>{}; [$*]" # | ./mirror.pl