From b092a528f30f25e78acfa9dc459912bb8c8ca41f Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 3 Feb 2025 22:20:19 +0100 Subject: [PATCH] xonsh: use `addBinToPathHook` --- pkgs/by-name/xo/xonsh/unwrapped.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/xo/xonsh/unwrapped.nix b/pkgs/by-name/xo/xonsh/unwrapped.nix index 93544f928fd6..3992262d873c 100644 --- a/pkgs/by-name/xo/xonsh/unwrapped.nix +++ b/pkgs/by-name/xo/xonsh/unwrapped.nix @@ -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