aboutsummaryrefslogtreecommitdiff
path: root/packages/binaryninja.nix
blob: fd17f0ed3857e9b8df88451b16121e36e126f1bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ pkgs, lib }:

pkgs.buildFHSEnv {
  name = "binaryninja";
  targetPkgs =
    pkgs: with pkgs; [
      dbus
      fontconfig
      freetype
      libGL
      libxml2
      libxkbcommon
      (python312.withPackages (
        ps: with ps; [
          pypresence
          z3-solver
        ]
      ))
      xorg.libX11
      xorg.libxcb
      xorg.xcbutilimage
      xorg.xcbutilkeysyms
      xorg.xcbutilrenderutil
      xorg.xcbutilwm
      wayland
      zlib
      gdb
    ];
  runScript = pkgs.writeScript "binaryninja.sh" ''
    set -e
    exec "~/.local/opt/binaryninja/binaryninja"         # ! change this path if your installation is located somewhere else.
  '';
  meta = {
    description = "binaryninja";
    platforms = [ "x86_64-linux" ];
  };
}