diff --git a/pkgs/by-name/gl/glusterfs/package.nix b/pkgs/by-name/gl/glusterfs/package.nix index ebd42589a28e..b8bae4bc7c0f 100644 --- a/pkgs/by-name/gl/glusterfs/package.nix +++ b/pkgs/by-name/gl/glusterfs/package.nix @@ -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.