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.
Run command nix-shell --pure with given files.
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).
Most helpful comment
See section 8.10.3.4 in the Nixpkgs manual. You need to unset
SOURCE_DATE_EPOCH
.