1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00

libseccomp: make pythonsrc reproducible

makes the pythonsrc reproducible by making the file date and
ordering static.

A more general solution to this problem has been proposed in
https://github.com/NixOS/nixpkgs/issues/106643
This commit is contained in:
Arnout Engelen 2020-12-11 10:27:24 +01:00
parent e9158eca70
commit 0fbe559542
No known key found for this signature in database
GPG key ID: 061107B0F74A6DAA

View file

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
# src input for buildPythonPackage calls
postInstall = ''
cp -R ./src/python/ tmp-pythonsrc/
tar -zcf $pythonsrc --transform s/tmp-pythonsrc/python-foundationdb/ ./tmp-pythonsrc/
tar -zcf $pythonsrc --mtime="@$SOURCE_DATE_EPOCH" --sort=name --transform s/tmp-pythonsrc/python-foundationdb/ ./tmp-pythonsrc/
'';
meta = with stdenv.lib; {