mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 10:10:06 +01:00
chore(image): pass all store paths at once via stdin to nix copy
This commit is contained in:
parent
a85c4e49fe
commit
90a4079200
1 changed files with 2 additions and 5 deletions
|
|
@ -163,11 +163,8 @@
|
|||
(finalizeScript
|
||||
# sh
|
||||
''
|
||||
while read entry; do
|
||||
[[ "$entry" == *.drv ]] && entry+="^*" || true
|
||||
nix copy --quiet --to "file://$(pwd)/.nix-cache" $entry || true
|
||||
echo -n "."
|
||||
done
|
||||
# add ^* to all store paths ending in .drv (prevent warning log spam)
|
||||
${pkgs.gnused}/bin/sed '/\.drv$/s/$/^*/' | nix copy --quiet --to "file://$(pwd)/.nix-cache" --stdin || true
|
||||
'')
|
||||
];
|
||||
image-cachix = mkImage [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue