pkgs/top-level/make-tarball.nix: make reproducible
This commit is contained in:
parent
e309661586
commit
f7672530de
1 changed files with 10 additions and 3 deletions
|
@ -58,12 +58,19 @@ pkgs.releaseTools.sourceTarball {
|
|||
distPhase = ''
|
||||
mkdir -p $out/tarballs
|
||||
XZ_OPT="-T0" tar \
|
||||
--absolute-names \
|
||||
--transform="s|^$src|$releaseName|g" \
|
||||
--transform="s|^$(pwd)|$releaseName|g" \
|
||||
--create \
|
||||
--xz \
|
||||
--file=$out/tarballs/$releaseName.tar.xz \
|
||||
--absolute-names \
|
||||
--transform="s|^$src|$releaseName|g" \
|
||||
--transform="s|^$(pwd)|$releaseName|g" \
|
||||
--owner=0 \
|
||||
--group=0 \
|
||||
--numeric-owner \
|
||||
--format=gnu \
|
||||
--sort=name \
|
||||
--mtime="@$SOURCE_DATE_EPOCH" \
|
||||
--mode=ug+w \
|
||||
$src $(pwd)/{.version-suffix,.git-revision}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue