1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02:00

Patch libzip to return timestamps in the Unix epoch

We're not even using those timestamps, but doing the conversion to
local time takes a lot of time. For instance, this patch speeds up
'nix flake metadata nixpkgs` from 0.542s to 0.094s.
This commit is contained in:
Eelco Dolstra 2022-10-10 17:23:24 +02:00
parent 0286edb588
commit 1483c56582
3 changed files with 21 additions and 11 deletions

View file

@ -115,6 +115,7 @@
(libzip.overrideDerivation (old: {
# Temporary workaround for https://github.com/NixOS/nixpkgs/pull/178755
cmakeFlags = old.cmakeFlags or [] ++ [ "-DBUILD_REGRESS=0" ];
patches = [ ./libzip-unix-time.patch ];
}))
boost
lowdown-nix