binary-ninja-personal: cleanup

This commit is contained in:
Sean Buckley 2022-07-24 11:07:14 -04:00
parent 05e7b2d9d4
commit e684b9c8e0

View file

@ -1,103 +1,43 @@
{ stdenv { stdenv
, alsaLib
, autoPatchelfHook , autoPatchelfHook
, dbus
, fontconfig
, freetype
, glib
, krb5
, libglvnd
, libICE
, libSM
, libX11
, libXcomposite
, libXcursor
, libXdamage
, libXext
, libXi
, libxkbcommon
, libXrandr
, libXrender
, libXtst
, makeWrapper , makeWrapper
, ncurses , ncurses
, nss , qt6
, python3 , python3
, requireFile , requireFile
, systemd
, unzip , unzip
, xcbutilimage
, xcbutilkeysyms
, xcbutilrenderutil
, xcbutilwm
, xkeyboardconfig
, zlib
}: }:
let let
hjs = builtins.fromJSON (builtins.readFile ./hashes.js); hjs = builtins.fromJSON (builtins.readFile ./hashes.js);
in in
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "binaryninja"; pname = "binaryninja";
inherit (hjs) version; inherit (hjs) version;
autoPatchelfIgnoreMissingDeps = [
"libQt6PrintSupport.so.6"
"libQt6Qml.so.6"
];
src = requireFile rec { src = requireFile rec {
name = "BinaryNinja-personal.zip"; name = "BinaryNinja-personal.zip";
url = "https://binary.ninja"; url = "https://binary.ninja";
sha256 = hjs.hashes.${name}; sha256 = hjs.hashes.${name};
}; };
buildInputs = [ nativeBuildInputs = [
alsaLib
autoPatchelfHook autoPatchelfHook
dbus
fontconfig
freetype
glib
krb5
libglvnd
libICE
libSM
libX11
libXcomposite
libXcursor
libXdamage
libXext
libXi
libxkbcommon
libXrandr
libXrender
libXtst
makeWrapper makeWrapper
ncurses qt6.wrapQtAppsHook
nss
python3
stdenv.cc.cc.lib
unzip unzip
xcbutilimage
xcbutilkeysyms
xcbutilrenderutil
xcbutilwm
zlib
]; ];
dontStrip = true; buildInputs = [
dontPatchELF = true; ncurses
];
installPhase = '' installPhase = ''
mkdir -p $out/lib $out/bin $out/share mkdir -p $out/lib $out/bin
mv $NIX_BUILD_TOP/$sourceRoot $out/lib/binary-ninja cp -a . $out/lib/binaryninja-personal
makeWrapper $out/lib/binary-ninja/binaryninja $out/bin/binaryninja \ makeWrapper $out/lib/binaryninja-personal/binaryninja $out/bin/binaryninja \
--suffix LD_LIBRARY_PATH : "${systemd}/lib" \ --suffix LD_LIBRARY_PATH : "${python3}/lib"
--suffix LD_LIBRARY_PATH : "${python3}/lib" \
--set QT_XKB_CONFIG_ROOT "${xkeyboardconfig}/share/X11/xkb" \
--set QTCOMPOSE "${libX11.out}/share/X11/locale"
''; '';
meta.platforms = [ "x86_64-linux" ]; meta.platforms = [ "x86_64-linux" ];