1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

prometheus/exporters/tor: make CPython happy by defining $HOME

This commit is contained in:
Pierre Bourdon 2018-12-05 04:24:20 +01:00 committed by Robin Gloster
parent caaaaa7fbb
commit 199b4c4743

View file

@ -36,5 +36,10 @@ in
${concatStringsSep " \\\n " cfg.extraFlags}
'';
};
# CPython requires a process to either have $HOME defined or run as a UID
# defined in /etc/passwd. The latter is false with DynamicUser, so define a
# dummy $HOME. https://bugs.python.org/issue10496
environment = { HOME = "/var/empty"; };
};
}