[Nix-dev] changing the default source epoch to be zip-safe

Vladimír Čunát vcunat at gmail.com
Sat Aug 20 14:11:11 CEST 2016


On 08/14/2016 04:13 PM, Ronny Pfannschmidt wrote:
> on nix it is a regular problem for me that zip file generating tools fail
> due to the epoch time being set to a time that's not supported in the
> zip format
> (mostly python wheels)
> 
> i would like to propose setting that epoch by default to something that
> is supported by zip

We discussed that zip problems aren't that bad to change timestamps of
/nix/store paths directly (1.1. 1970).

For python and similar we have a hook that touches source files after
"unpacking" phase - the typical problem is after fetch* other than
fetchurl. Typical usage:
  buildInputs = [ (ensureNewerSourcesHook { year = "1980"; }) ]

Note that our generic python builder already does use the hook
automatically.

--Vladimir


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3771 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160820/5eed7a09/attachment.p7s>


More information about the nix-dev mailing list