xonsh: use addBinToPathHook

This commit is contained in:
Pol Dellaiera
2025-02-04 09:01:38 +01:00
parent b5279fcbed
commit b092a528f3
+10 -8
View File
@@ -2,10 +2,12 @@
lib,
coreutils,
fetchFromGitHub,
git,
gitMinimal,
glibcLocales,
nix-update-script,
pythonPackages,
addBinToPathHook,
writableTmpDirAsHomeHook,
}:
let
@@ -19,7 +21,7 @@ let
src = fetchFromGitHub {
owner = "xonsh";
repo = "xonsh";
rev = "refs/tags/${argset.version}";
tag = argset.version;
hash = "sha256-20egNKlJjJO1wdy1anApz0ADBnaHPUSqhfrsPe3QQIs=";
};
@@ -39,8 +41,10 @@ let
nativeCheckInputs =
[
git
addBinToPathHook
gitMinimal
glibcLocales
writableTmpDirAsHomeHook
]
++ (with pythonPackages; [
pip
@@ -77,6 +81,9 @@ let
# https://github.com/xonsh/xonsh/issues/5569
"test_spec_decorator_alias_output_format"
# Broken test
"test_repath_backslash"
];
disabledTestPaths = [
@@ -103,11 +110,6 @@ let
patchShebangs .
'';
preCheck = ''
export HOME=$TMPDIR
export PATH=$out/bin:$PATH
'';
passthru = {
shellPath = "/bin/xonsh";
python = pythonPackages.python; # To the wrapper