Skip to content

Commit 34596df

Browse files
committed
Fix non-freeware editions of Binja, hopefully
1 parent 40e275a commit 34596df

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,15 @@ stdenv.mkDerivation {
9191
mkdir -p $out/opt/binaryninja
9292
mkdir -p $out/share/pixmaps
9393
cp -r * $out/opt/binaryninja
94-
rm $out/opt/binaryninja/*.so.*
94+
find $out/opt/binaryninja \
95+
-type f \
96+
-name '*.so.*' \
97+
-not -name 'libbinaryninjacore.so.*' \
98+
-not -name 'libbinaryninjaui.so.*' \
99+
-not -name 'liblldb.so.*' \
100+
-not -name 'libshiboken6.abi*.so.*' \
101+
-not -name 'libpyside6.abi*.so.*' \
102+
-delete
95103
cp ${desktopIcon} $out/share/pixmaps/binaryninja.png
96104
chmod +x $out/opt/binaryninja/binaryninja
97105
buildPythonPath "$pythonDeps"

0 commit comments

Comments
 (0)