mirror of
https://code.tvl.fyi/depot.git:/tools/nixery.git
synced 2025-03-15 06:01:51 +00:00
fix(build-image): Use absolute paths in tarballs
This commit is contained in:
parent
16897a8e2c
commit
c14de7db20
|
@ -133,11 +133,11 @@ let
|
|||
# their contents.
|
||||
pathsToLayer = paths: runCommand "layer.tar" {
|
||||
} ''
|
||||
tar --no-recursion -rf "$out" \
|
||||
tar --no-recursion -Prf "$out" \
|
||||
--mtime="@$SOURCE_DATE_EPOCH" \
|
||||
--owner=0 --group=0 /nix /nix/store
|
||||
|
||||
tar -rpf "$out" --hard-dereference --sort=name \
|
||||
tar -Prpf "$out" --hard-dereference --sort=name \
|
||||
--mtime="@$SOURCE_DATE_EPOCH" \
|
||||
--owner=0 --group=0 ${lib.concatStringsSep " " paths}
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue
Block a user