mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
101 lines
1.7 KiB
Nix
101 lines
1.7 KiB
Nix
{ stdenv
|
|
, alsaLib
|
|
, autoPatchelfHook
|
|
, dbus
|
|
, fontconfig
|
|
, freetype
|
|
, glib
|
|
, krb5
|
|
, libglvnd
|
|
, libICE
|
|
, libSM
|
|
, libX11
|
|
, libXcomposite
|
|
, libXcursor
|
|
, libXdamage
|
|
, libXext
|
|
, libXi
|
|
, libxkbcommon
|
|
, libXrandr
|
|
, libXrender
|
|
, libXtst
|
|
, makeWrapper
|
|
, nss
|
|
, python3
|
|
, requireFile
|
|
, systemd
|
|
, unzip
|
|
, xcbutilimage
|
|
, xcbutilkeysyms
|
|
, xcbutilrenderutil
|
|
, xcbutilwm
|
|
, xkeyboardconfig
|
|
, zlib
|
|
}:
|
|
|
|
let
|
|
# curl -O https://binary.ninja/js/hashes.js
|
|
hjs = builtins.fromJSON (builtins.readFile ./hashes.js);
|
|
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "binaryninja";
|
|
inherit (hjs) version;
|
|
|
|
# TODO: missing libQt6PrintSupport.so.6
|
|
autoPatchelfIgnoreMissingDeps = true;
|
|
|
|
src = requireFile rec {
|
|
name = "BinaryNinja-personal.zip";
|
|
url = "https://binary.ninja";
|
|
sha256 = hjs.hashes.${name};
|
|
};
|
|
|
|
buildInputs = [
|
|
alsaLib
|
|
autoPatchelfHook
|
|
dbus
|
|
fontconfig
|
|
freetype
|
|
glib
|
|
krb5
|
|
libglvnd
|
|
libICE
|
|
libSM
|
|
libX11
|
|
libXcomposite
|
|
libXcursor
|
|
libXdamage
|
|
libXext
|
|
libXi
|
|
libxkbcommon
|
|
libXrandr
|
|
libXrender
|
|
libXtst
|
|
makeWrapper
|
|
nss
|
|
python3
|
|
stdenv.cc.cc.lib
|
|
unzip
|
|
xcbutilimage
|
|
xcbutilkeysyms
|
|
xcbutilrenderutil
|
|
xcbutilwm
|
|
zlib
|
|
];
|
|
|
|
dontStrip = true;
|
|
dontPatchELF = true;
|
|
|
|
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"
|
|
'';
|
|
|
|
meta.platforms = [ "x86_64-linux" ];
|
|
}
|