Nixpkgs: ZIP does not support timestamps before 1980

Created on 25 Nov 2016  路  3Comments  路  Source: NixOS/nixpkgs

Issue description

I get this error, when using creating dev environment with nix-shell. How should I go about fixing it?
My default.nix file:

with import <nixpkgs> {}; {
    pythonEnv = stdenv.mkDerivation {
        name = "foo";
        buildInputs = [
            stdenv
            libxml2
            libxslt
            vim
            bashInteractive
            python34
            python34Packages.pew
        ];
        shellHook =
        ''
        export SHELL=${bashInteractive}/bin/bash
        pew mktmpenv -r requirements/dev.txt
        '';
    };
}

Python requirements/dev.txt file:

# requirements/dev.txt
celery>=4.0.0
flower>=0.9.1
requests>=2.12.1
lxml>=3.6.4
pylint>=1.6.4
pep8>=1.7.0

Pinging @domenkozar and @FRidh as I know they maintain Python infrastructure.

Steps to reproduce

Run command nix-shell --pure with given files.

Technical details

  • System: 17.03pre95306.a24728f (Gorilla)
  • Nix version: nix-env (Nix) 1.11.4
  • Nixpkgs version: 17.03pre95306.a24728f

Most helpful comment

See section 8.10.3.4 in the Nixpkgs manual. You need to unset SOURCE_DATE_EPOCH.

All 3 comments

See section 8.10.3.4 in the Nixpkgs manual. You need to unset SOURCE_DATE_EPOCH.

Thanks and sorry that I missed it.

There's also ensureNewerSourcesHook, which has the advantage of producing always the same timestamps (but for shell envs you probably don't care).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ob7 picture ob7  路  3Comments

rzetterberg picture rzetterberg  路  3Comments

teto picture teto  路  3Comments

sid-kap picture sid-kap  路  3Comments

edolstra picture edolstra  路  3Comments