lol

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 2 , libclang, llvm, unifdef 3 , pebble, psutil, pytestCheckHook, pytest-flake8 4 }: ··· 20 ]; 21 22 nativeBuildInputs = [ cmake flex llvm.dev ]; 23 - buildInputs = [ libclang llvm llvm.dev unifdef ]; 24 propagatedBuildInputs = [ pebble psutil ]; 25 checkInputs = [ pytestCheckHook pytest-flake8 unifdef ]; 26 27 preCheck = '' 28 patchShebangs cvise.py
··· 1 + { lib, buildPythonApplication, fetchFromGitHub, bash, cmake, flex 2 , libclang, llvm, unifdef 3 , pebble, psutil, pytestCheckHook, pytest-flake8 4 }: ··· 20 ]; 21 22 nativeBuildInputs = [ cmake flex llvm.dev ]; 23 + buildInputs = [ bash libclang llvm llvm.dev unifdef ]; 24 propagatedBuildInputs = [ pebble psutil ]; 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 + ''; 32 33 preCheck = '' 34 patchShebangs cvise.py