mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
pkgs/top-level/make-tarball.nix: avoid hardlinks
This commit is contained in:
parent
c375910128
commit
72e89d7461
@ -55,6 +55,8 @@ pkgs.releaseTools.sourceTarball {
|
||||
echo "file json-br $packages" >> $out/nix-support/hydra-build-products
|
||||
'';
|
||||
|
||||
# --hard-dereference: reproducibility for src if auto-optimise-store = true
|
||||
# Some context: https://github.com/NixOS/infra/issues/438
|
||||
distPhase = ''
|
||||
mkdir -p $out/tarballs
|
||||
XZ_OPT="-T0" tar \
|
||||
@ -71,6 +73,7 @@ pkgs.releaseTools.sourceTarball {
|
||||
--sort=name \
|
||||
--mtime="@$SOURCE_DATE_EPOCH" \
|
||||
--mode=ug+w \
|
||||
--hard-dereference \
|
||||
$src $(pwd)/{.version-suffix,.git-revision}
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user