Merge pull request #197760 from jtojnar/no-meson-expose

Revert "meson: expose python3 in passthru"
This commit is contained in:
Anderson Torres 2022-10-26 18:16:14 -03:00 committed by GitHub
commit c85a3fc453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -14,6 +14,7 @@
, lz4
, xxHash
, meson
, python3
, cmake
, ninja
, capstone
@ -43,7 +44,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
pkg-config
meson
meson.python3.pkgs.pyyaml
(python3.withPackages (pp: with pp; [
pyyaml
]))
ninja
cmake
];
@ -79,6 +82,14 @@ stdenv.mkDerivation rec {
xxHash
];
postPatch = ''
# find_installation without arguments uses Mesons Python interpreter,
# which does not have any extra modules.
# https://github.com/mesonbuild/meson/pull/9904
substituteInPlace meson.build \
--replace "import('python').find_installation()" "find_program('python3')"
'';
meta = {
description = "UNIX-like reverse engineering framework and command-line toolset.";
homepage = "https://rizin.re/";

View File

@ -103,10 +103,6 @@ python3.pkgs.buildPythonApplication rec {
installShellCompletion --bash data/shell-completions/bash/meson
'';
passthru = {
inherit python3;
};
meta = with lib; {
homepage = "https://mesonbuild.com";
description = "An open source, fast and friendly build system made in Python";