lol

rizin: Do not use Meson’s Python

It is intentionally minimal and IMO should not be exposed at all.

This should be fixed in rizin upstream.

The hack was introduced in commit 577d2454c2a2d2cf3876a232fd809337e0181ae4 and this patch fixes it more properly.

+12 -1
+12 -1
pkgs/development/tools/analysis/rizin/default.nix
··· 14 14 , lz4 15 15 , xxHash 16 16 , meson 17 + , python3 17 18 , cmake 18 19 , ninja 19 20 , capstone ··· 43 44 nativeBuildInputs = [ 44 45 pkg-config 45 46 meson 46 - meson.python3.pkgs.pyyaml 47 + (python3.withPackages (pp: with pp; [ 48 + pyyaml 49 + ])) 47 50 ninja 48 51 cmake 49 52 ]; ··· 78 81 tree-sitter 79 82 xxHash 80 83 ]; 84 + 85 + postPatch = '' 86 + # find_installation without arguments uses Meson’s Python interpreter, 87 + # which does not have any extra modules. 88 + # https://github.com/mesonbuild/meson/pull/9904 89 + substituteInPlace meson.build \ 90 + --replace "import('python').find_installation()" "find_program('python3')" 91 + ''; 81 92 82 93 meta = { 83 94 description = "UNIX-like reverse engineering framework and command-line toolset.";