mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
88 lines
1.5 KiB
Nix
88 lines
1.5 KiB
Nix
{ stdenv
|
|
, autoPatchelfHook
|
|
, requireFile
|
|
, libxkbcommon
|
|
, makeWrapper
|
|
, unzip
|
|
, zlib
|
|
, glib
|
|
, fontconfig
|
|
, freetype
|
|
, dbus
|
|
, python37
|
|
, libglvnd
|
|
, libXext
|
|
, libX11
|
|
, libXrender
|
|
, libXi
|
|
, libSM
|
|
, libICE
|
|
, xkeyboardconfig
|
|
, nss
|
|
, libXcomposite
|
|
, libXcursor
|
|
, libXdamage
|
|
, libXtst
|
|
, alsaLib
|
|
, libXrandr
|
|
, krb5
|
|
, xcbutilwm
|
|
, xcbutilimage
|
|
, xcbutilkeysyms
|
|
, xcbutilrenderutil
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
name = "binary-ninja-personal";
|
|
|
|
src = requireFile {
|
|
name = "BinaryNinja-personal.zip";
|
|
url = "https://binary.ninja";
|
|
sha256 = "5dae72ad0d31f7439cf4232a5324a31857ce4e0e593c85c62520c94ff171b4a2";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
libxkbcommon
|
|
stdenv.cc.cc.lib
|
|
zlib
|
|
glib
|
|
fontconfig
|
|
freetype
|
|
nss
|
|
dbus
|
|
python37
|
|
libglvnd
|
|
libXext
|
|
libX11
|
|
libXrender
|
|
libXi
|
|
libSM
|
|
libICE
|
|
unzip
|
|
makeWrapper
|
|
libXcomposite
|
|
libXcursor
|
|
libXdamage
|
|
libXtst
|
|
alsaLib
|
|
libXrandr
|
|
krb5
|
|
xcbutilwm
|
|
xcbutilimage
|
|
xcbutilkeysyms
|
|
xcbutilrenderutil
|
|
];
|
|
|
|
dontStrip = true;
|
|
dontPatchELF = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib $out/bin $out/share
|
|
mv $NIX_BUILD_TOP/$sourceRoot $out/lib/binary-ninja
|
|
ln -s "${src}" "$out/share/BinaryNinja-personal.zip"
|
|
ln -s "${python37}/lib/libpython3.7m.so.1.0" "$out/lib/binary-ninja/libpython3.7m.so.1"
|
|
makeWrapper $out/lib/binary-ninja/binaryninja $out/bin/binaryninja \
|
|
--set QT_XKB_CONFIG_ROOT "${xkeyboardconfig}/share/X11/xkb" \
|
|
--set QTCOMPOSE "${libX11.out}/share/X11/locale"
|
|
'';
|
|
}
|