Skip to content

Commit

Permalink
gnupg22: reproducible build
Browse files Browse the repository at this point in the history
just touch to keep timestamp from upstream instead of forcing it to
$SOURCE_DATE_EPOCH
  • Loading branch information
wamserma committed May 22, 2020
1 parent 1c4919e commit ecb6edb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/tools/security/gnupg/22.nix
Expand Up @@ -53,8 +53,10 @@ stdenv.mkDerivation rec {
"--with-npth-prefix=${npth}"
] ++ optional guiSupport "--with-pinentry-pgm=${pinentry}/${pinentryBinaryPath}";

# ensure doc/defsincdate is more recent than anything we touched until now, especially in postPatch
# otherwise these modification times might leak into the generated documentation
preBuild = ''
echo $SOURCE_DATE_EPOCH > doc/defsincdate
touch doc/defsincdate
'';

postInstall = if enableMinimal
Expand Down

0 comments on commit ecb6edb

Please sign in to comment.