Skip to content

Commit d5c6af3

Browse files
committed
Improve libpython injection
1 parent 87aa6db commit d5c6af3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
lib,
23
stdenv,
34
callPackage,
45
autoPatchelfHook,
@@ -51,6 +52,7 @@ stdenv.mkDerivation {
5152
wayland-scanner.out
5253
];
5354
pythonDeps = [ python3.pkgs.pip ];
55+
appendRunpaths = [ "${lib.getLib python3}/lib" ];
5456
buildPhase = ":";
5557
installPhase = ''
5658
runHook preInstall
@@ -61,7 +63,6 @@ stdenv.mkDerivation {
6163
chmod +x $out/opt/binaryninja
6264
buildPythonPath "$pythonDeps"
6365
makeWrapper $out/opt/binaryninja $out/bin/binaryninja \
64-
--prefix LD_LIBRARY_PATH : "${python3}/lib" \
6566
--prefix PYTHONPATH : "$program_PYTHONPATH" \
6667
"''${qtWrapperArgs[@]}"
6768

0 commit comments

Comments
 (0)