diff --git a/pkgs/tools/security/gnupg/22.nix b/pkgs/tools/security/gnupg/22.nix index 8220dafb1d23c8..063a07cd3d8e42 100644 --- a/pkgs/tools/security/gnupg/22.nix +++ b/pkgs/tools/security/gnupg/22.nix @@ -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