Skip to content

Commit

Permalink
linkchecker: fix bad interaction with python3
Browse files Browse the repository at this point in the history
Previously, `nix-shell -p linkchecker python3` would lead to a broken
`python3` command. That's because Python 2 packages would pollute the
environment and confuse the interpreter. `linkchecker` has propagated
build inputs. So the solution is to use `pythonPath` instead, to avoid
the pollution.
  • Loading branch information
mboes authored and Profpatsch committed May 6, 2019
1 parent 83d6250 commit 361e918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/tools/networking/linkchecker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ python2Packages.buildPythonApplication rec {
version = "9.3.1";

nativeBuildInputs = [ gettext ];
propagatedBuildInputs = (with python2Packages; [
pythonPath = (with python2Packages; [
requests
]) ++ [ gettext ];

Expand Down

0 comments on commit 361e918

Please sign in to comment.