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
|
(finalizeScript
|
||||||
# sh
|
# sh
|
||||||
''
|
''
|
||||||
while read entry; do
|
# add ^* to all store paths ending in .drv (prevent warning log spam)
|
||||||
[[ "$entry" == *.drv ]] && entry+="^*" || true
|
${pkgs.gnused}/bin/sed '/\.drv$/s/$/^*/' | nix copy --quiet --to "file://$(pwd)/.nix-cache" --stdin || true
|
||||||
nix copy --quiet --to "file://$(pwd)/.nix-cache" $entry || true
|
|
||||||
echo -n "."
|
|
||||||
done
|
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
image-cachix = mkImage [
|
image-cachix = mkImage [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue