File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 12
12
libxkbcommon ,
13
13
wayland-scanner ,
14
14
kdePackages ,
15
+ python3 ,
15
16
16
17
binaryNinjaEdition ? "personal" ,
17
18
} :
27
28
stdenv . mkDerivation {
28
29
pname = "binary-ninja" ;
29
30
inherit ( sources ) version ;
31
+ src = source ;
30
32
nativeBuildInputs = [
31
33
makeWrapper
32
34
autoPatchelfHook
35
+ python3 . pkgs . wrapPython
33
36
kdePackages . wrapQtAppsHook
34
37
] ;
35
38
buildInputs = [
@@ -47,7 +50,7 @@ stdenv.mkDerivation {
47
50
dbus
48
51
wayland-scanner . out
49
52
] ;
50
- src = source ;
53
+ pythonDeps = [ python3 . pkgs . pip ] ;
51
54
buildPhase = ":" ;
52
55
installPhase = ''
53
56
runHook preInstall
@@ -56,7 +59,10 @@ stdenv.mkDerivation {
56
59
mkdir -p $out/opt
57
60
cp -r * $out/opt
58
61
chmod +x $out/opt/binaryninja
62
+ buildPythonPath "$pythonDeps"
59
63
makeWrapper $out/opt/binaryninja $out/bin/binaryninja \
64
+ --prefix LD_LIBRARY_PATH : "${ python3 } /lib" \
65
+ --prefix PYTHONPATH : "$program_PYTHONPATH" \
60
66
"'' ${qtWrapperArgs[@]}"
61
67
62
68
runHook postInstall
You can’t perform that action at this time.
0 commit comments