diff options
Diffstat (limited to 'pkgs/shells/xonsh/default.nix')
-rw-r--r-- | pkgs/shells/xonsh/default.nix | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/pkgs/shells/xonsh/default.nix b/pkgs/shells/xonsh/default.nix index faa2ae763088..00b5259ae7e6 100644 --- a/pkgs/shells/xonsh/default.nix +++ b/pkgs/shells/xonsh/default.nix @@ -1,12 +1,12 @@ { lib , fetchFromGitHub -, python3Packages +, python3 , glibcLocales , coreutils , git }: -python3Packages.buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "xonsh"; version = "0.14.0"; @@ -29,16 +29,8 @@ python3Packages.buildPythonApplication rec { find scripts -name 'xonsh*' -exec sed -i -e "s|env -S|env|" {} \; find -name "*.xsh" | xargs sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' patchShebangs . - - substituteInPlace scripts/xon.sh \ - --replace 'python' "${python3Packages.python}/bin/python" - ''; - makeWrapperArgs = [ - "--prefix PYTHONPATH : ${placeholder "out"}/lib/${python3Packages.python.libPrefix}/site-packages" - ]; - disabledTests = [ # fails on sandbox "test_colorize_file" @@ -71,9 +63,9 @@ python3Packages.buildPythonApplication rec { ''; nativeCheckInputs = [ glibcLocales git ] ++ - (with python3Packages; [ pyte pytestCheckHook pytest-mock pytest-subprocess ]); + (with python3.pkgs; [ pyte pytestCheckHook pytest-mock pytest-subprocess ]); - propagatedBuildInputs = with python3Packages; [ ply prompt-toolkit pygments ]; + propagatedBuildInputs = with python3.pkgs; [ ply prompt-toolkit pygments ]; meta = with lib; { description = "A Python-ish, BASHwards-compatible shell"; @@ -85,5 +77,6 @@ python3Packages.buildPythonApplication rec { passthru = { shellPath = "/bin/xonsh"; + python = python3; }; } |