Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #317122 from vcunat/p/tarball-hardlinks

pkgs/top-level/make-tarball.nix: avoid hardlinks

authored by Silvan Mosberger and committed by GitHub cc648ec4 96583933

+3
+3
pkgs/top-level/make-tarball.nix
··· 55 55 echo "file json-br $packages" >> $out/nix-support/hydra-build-products 56 56 ''; 57 57 58 + # --hard-dereference: reproducibility for src if auto-optimise-store = true 59 + # Some context: https://github.com/NixOS/infra/issues/438 58 60 distPhase = '' 59 61 mkdir -p $out/tarballs 60 62 XZ_OPT="-T0" tar \ ··· 71 73 --sort=name \ 72 74 --mtime="@$SOURCE_DATE_EPOCH" \ 73 75 --mode=ug+w \ 76 + --hard-dereference \ 74 77 $src $(pwd)/{.version-suffix,.git-revision} 75 78 ''; 76 79 }