If `PATH` is unset, the exec wrappers in skalibs set a default path to
`/usr/bin:bin`.
This has very unfortunate effects when you e.g. try to run tests on CI
in an empty environment (minus tools explicitely provided by nix with
absolute store paths), because suddenly binaries from outside are
picked up again, especially on non-NixOS.
Even on NixOS, /bin/sh provides another escape hatch if it’s available
from PATH. But on systems like Ubuntu or MacOS (which most CI systems
run on), this picks up all the non-nix binaries.
I was unable tp build calibre at the current git master as it relies on
pytthon27Packages.html2text. Python 2.7 support was removed in the
latest version. This PR downgrades html2text when using an unsupported
Python version.
This PR does not fix building python37Packages.html2text
and python38Packages.html2text, which were broken at master due to what
seems to be a problem in buildPythonPackage.
This was added on accident in cfaa8b8652,
as the gnome3 parameter is already specified.
This unbreaks Borg evaluation.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Fixes#71296 (Po4a build get stuck in a loop)
Term::ReadKey is an optional dependency. From upstream:
> This module is used to retrieve the terminal's line width.
> If it is not present, the line width can be specified with the COLUMN environment variable.
libusb1 can't depend on systemd in order to be compiling with musl,
because systemd can't be built with musl.
Since systemd provides udev, udev support needs to be disabled when
building libusb1.
Previously it was missing a runtime dependency on setuptools:
[kier@saelli:~/checkouts/nixpkgs]$ $(nix-build -A python27Packages.pylint --no-out-link)/bin/pylint
Traceback (most recent call last):
File "/nix/store/0k8h6n6nxjcs2j5jp54mfppjbx37hrrg-python2.7-pylint-1.9.5/bin/.pylint-wrapped", line 6, in <module>
from pylint import run_pylint
File "/nix/store/0k8h6n6nxjcs2j5jp54mfppjbx37hrrg-python2.7-pylint-1.9.5/lib/python2.7/site-packages/pylint/__init__.py", line 11, in <module>
from .__pkginfo__ import version as __version__
File "/nix/store/0k8h6n6nxjcs2j5jp54mfppjbx37hrrg-python2.7-pylint-1.9.5/lib/python2.7/site-packages/pylint/__pkginfo__.py", line 25, in <module>
from pkg_resources import parse_version
ImportError: No module named pkg_resources
With this change, the same command now correctly prints pylint's help text.
This only applies to Python 2.