mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-29 12:27:30 +00:00
prometheus/exporters/tor: make CPython happy by defining $HOME
This commit is contained in:
parent
caaaaa7fbb
commit
199b4c4743
1 changed files with 5 additions and 0 deletions
|
@ -36,5 +36,10 @@ in
|
||||||
${concatStringsSep " \\\n " cfg.extraFlags}
|
${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"; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue