mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
fail2ban: fix cross
The `updatePyExec` thing is weird, but necessary to avoid referencing
the build python.
132c719386/fail2ban/setup.py (L27)
This commit is contained in:
parent
e1a4c706e6
commit
ccd99e8d17
@ -43,7 +43,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
substituteInPlace setup.py --replace /usr/share/doc/ share/doc/
|
||||
|
||||
# see https://github.com/NixOS/nixpkgs/issues/4968
|
||||
${python3.interpreter} setup.py install_data --install-dir=$out --root=$out
|
||||
${python3.pythonForBuild.interpreter} setup.py install_data --install-dir=$out --root=$out
|
||||
'';
|
||||
|
||||
postInstall =
|
||||
@ -61,6 +61,11 @@ python3.pkgs.buildPythonApplication rec {
|
||||
rm -r "${sitePackages}/etc"
|
||||
|
||||
installManPage man/*.[1-9]
|
||||
|
||||
# This is a symlink to the build python version created by `updatePyExec`, seemingly to assure the same python version is used?
|
||||
rm $out/bin/fail2ban-python
|
||||
ln -s ${python3.interpreter} $out/bin/fail2ban-python
|
||||
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
# see https://github.com/NixOS/nixpkgs/issues/4968
|
||||
rm -r "${sitePackages}/usr"
|
||||
|
Loading…
Reference in New Issue
Block a user