From fe57668bca7864c44c948ce209dfaf4a1180759b Mon Sep 17 00:00:00 2001 From: itslychee Date: Sun, 24 Mar 2024 07:25:38 -0500 Subject: [PATCH] pythonPackages.jishaku: patch hardcoded /bin/bash default to /bin/sh Co-Authored-By: a-n-n-a-l-e-e --- pkgs/development/python-modules/jishaku/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/jishaku/default.nix b/pkgs/development/python-modules/jishaku/default.nix index e758f4c691eb..a5bf87fbdd4a 100644 --- a/pkgs/development/python-modules/jishaku/default.nix +++ b/pkgs/development/python-modules/jishaku/default.nix @@ -1,5 +1,6 @@ { lib, + bash, buildPythonPackage, fetchFromGitHub, fetchpatch, @@ -33,6 +34,11 @@ buildPythonPackage rec { }) ]; + postPatch = '' + substituteInPlace jishaku/shell.py \ + --replace-fail '"/bin/bash"' '"${lib.getExe bash}"' + ''; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [