mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
binary-ninja-personal: cleanup
This commit is contained in:
parent
05e7b2d9d4
commit
e684b9c8e0
1 changed files with 11 additions and 71 deletions
|
@ -1,103 +1,43 @@
|
|||
{ stdenv
|
||||
, alsaLib
|
||||
, autoPatchelfHook
|
||||
, dbus
|
||||
, fontconfig
|
||||
, freetype
|
||||
, glib
|
||||
, krb5
|
||||
, libglvnd
|
||||
, libICE
|
||||
, libSM
|
||||
, libX11
|
||||
, libXcomposite
|
||||
, libXcursor
|
||||
, libXdamage
|
||||
, libXext
|
||||
, libXi
|
||||
, libxkbcommon
|
||||
, libXrandr
|
||||
, libXrender
|
||||
, libXtst
|
||||
, makeWrapper
|
||||
, ncurses
|
||||
, nss
|
||||
, qt6
|
||||
, python3
|
||||
, requireFile
|
||||
, systemd
|
||||
, unzip
|
||||
, xcbutilimage
|
||||
, xcbutilkeysyms
|
||||
, xcbutilrenderutil
|
||||
, xcbutilwm
|
||||
, xkeyboardconfig
|
||||
, zlib
|
||||
}:
|
||||
|
||||
let
|
||||
hjs = builtins.fromJSON (builtins.readFile ./hashes.js);
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation {
|
||||
pname = "binaryninja";
|
||||
inherit (hjs) version;
|
||||
|
||||
autoPatchelfIgnoreMissingDeps = [
|
||||
"libQt6PrintSupport.so.6"
|
||||
"libQt6Qml.so.6"
|
||||
];
|
||||
|
||||
src = requireFile rec {
|
||||
name = "BinaryNinja-personal.zip";
|
||||
url = "https://binary.ninja";
|
||||
sha256 = hjs.hashes.${name};
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
alsaLib
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
dbus
|
||||
fontconfig
|
||||
freetype
|
||||
glib
|
||||
krb5
|
||||
libglvnd
|
||||
libICE
|
||||
libSM
|
||||
libX11
|
||||
libXcomposite
|
||||
libXcursor
|
||||
libXdamage
|
||||
libXext
|
||||
libXi
|
||||
libxkbcommon
|
||||
libXrandr
|
||||
libXrender
|
||||
libXtst
|
||||
makeWrapper
|
||||
ncurses
|
||||
nss
|
||||
python3
|
||||
stdenv.cc.cc.lib
|
||||
qt6.wrapQtAppsHook
|
||||
unzip
|
||||
xcbutilimage
|
||||
xcbutilkeysyms
|
||||
xcbutilrenderutil
|
||||
xcbutilwm
|
||||
zlib
|
||||
];
|
||||
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
buildInputs = [
|
||||
ncurses
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib $out/bin $out/share
|
||||
mv $NIX_BUILD_TOP/$sourceRoot $out/lib/binary-ninja
|
||||
makeWrapper $out/lib/binary-ninja/binaryninja $out/bin/binaryninja \
|
||||
--suffix LD_LIBRARY_PATH : "${systemd}/lib" \
|
||||
--suffix LD_LIBRARY_PATH : "${python3}/lib" \
|
||||
--set QT_XKB_CONFIG_ROOT "${xkeyboardconfig}/share/X11/xkb" \
|
||||
--set QTCOMPOSE "${libX11.out}/share/X11/locale"
|
||||
mkdir -p $out/lib $out/bin
|
||||
cp -a . $out/lib/binaryninja-personal
|
||||
makeWrapper $out/lib/binaryninja-personal/binaryninja $out/bin/binaryninja \
|
||||
--suffix LD_LIBRARY_PATH : "${python3}/lib"
|
||||
'';
|
||||
|
||||
meta.platforms = [ "x86_64-linux" ];
|
||||
|
|
Loading…
Reference in a new issue