how can I make sure that unpacking of archive downloaded by fetchFromGitHub in NixOS has…
Private research annotation
Sign in to add a private research label or note.
- User
how can I make sure that unpacking of archive downloaded by fetchFromGitHub in NixOS has a date 1980 rather than 1970
- Assistant
In NixOS,
fetchFromGitHubis a function in the Nix package manager used to download and unpack sources from GitHub. By default, the unpacking process might preserve the original timestamps of the files, which can lead to dates from the Unix epoch (1970). If you want to set a different timestamp, like January 1, 1980, you need to manipulate the files after they have been unpacked.Here's how you can achieve that:
- Use the
fetchFromGitHubfunction to download and unpack the source.
- Use the