Merge pull request #138039 from trofi/cvise-shebang

cvise: use /bin.bash from nix store

authored by

figsoda and committed by
GitHub
f161c5f3 f7af2a7c

+8 -2
+8 -2
pkgs/development/tools/misc/cvise/default.nix
··· 1 - { lib, buildPythonApplication, fetchFromGitHub, cmake, flex 1 + { lib, buildPythonApplication, fetchFromGitHub, bash, cmake, flex 2 2 , libclang, llvm, unifdef 3 3 , pebble, psutil, pytestCheckHook, pytest-flake8 4 4 }: ··· 20 20 ]; 21 21 22 22 nativeBuildInputs = [ cmake flex llvm.dev ]; 23 - buildInputs = [ libclang llvm llvm.dev unifdef ]; 23 + buildInputs = [ bash libclang llvm llvm.dev unifdef ]; 24 24 propagatedBuildInputs = [ pebble psutil ]; 25 25 checkInputs = [ pytestCheckHook pytest-flake8 unifdef ]; 26 + 27 + # 'cvise --command=...' generates a script with hardcoded shebang. 28 + postPatch = '' 29 + substituteInPlace cvise.py \ 30 + --replace "#!/bin/bash" "#!${bash}/bin/bash" 31 + ''; 26 32 27 33 preCheck = '' 28 34 patchShebangs cvise.py