mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 04:04:06 +01:00
glusterfs: move env variable(s) into env for structuredAttrs
This commit is contained in:
parent
7878056615
commit
c71880db9c
1 changed files with 11 additions and 9 deletions
|
|
@ -225,15 +225,17 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
doInstallCheck = true;
|
||||
|
||||
# Below we run Python programs. That generates .pyc/.pyo files.
|
||||
# By default they are indeterministic because such files contain time stamps
|
||||
# (see https://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html).
|
||||
# So we use the same environment variables as in
|
||||
# https://github.com/NixOS/nixpkgs/blob/249b34aadca7038207492f29142a3456d0cecec3/pkgs/development/interpreters/python/mk-python-derivation.nix#L61
|
||||
# to make these files deterministic.
|
||||
# A general solution to this problem might be brought by #25707.
|
||||
DETERMINISTIC_BUILD = 1;
|
||||
PYTHONHASHSEED = 0;
|
||||
env = {
|
||||
# Below we run Python programs. That generates .pyc/.pyo files.
|
||||
# By default they are indeterministic because such files contain time stamps
|
||||
# (see https://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html).
|
||||
# So we use the same environment variables as in
|
||||
# https://github.com/NixOS/nixpkgs/blob/249b34aadca7038207492f29142a3456d0cecec3/pkgs/development/interpreters/python/mk-python-derivation.nix#L61
|
||||
# to make these files deterministic.
|
||||
# A general solution to this problem might be brought by #25707.
|
||||
DETERMINISTIC_BUILD = 1;
|
||||
PYTHONHASHSEED = 0;
|
||||
};
|
||||
|
||||
installCheckPhase = ''
|
||||
# Tests that the above programs work without import errors.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue