aboutsummaryrefslogtreecommitdiff
path: root/packages/ida.nix
blob: c4975854cc536ef2ac74de08d31c7038ec089cee (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ pkgs, lib, ... }:
pkgs.buildFHSEnv rec {
  name = "ida";
  version = "9.1";
  targetPkgs = pkgs: with pkgs; [
    dbus
    wayland
    egl-wayland
    libGL
    cairo
    dbus
    fontconfig
    freetype
    glib
    gtk3
    libdrm
    libGL
    libkrb5
    libsecret
    libsForQt5.qtbase
    libunwind
    libxkbcommon
    libsecret
    openssl.out
    stdenv.cc.cc
    xorg.libICE
    xorg.libSM
    xorg.libX11
    xorg.libXau
    xorg.libxcb
    xorg.libXext
    xorg.libXi
    xorg.libXrender
    xorg.xcbutilimage
    xorg.xcbutilkeysyms
    xorg.xcbutilrenderutil
    xorg.xcbutilwm
    zlib
    curl.out
    (python313.withPackages (
      ps: with ps; [
        rpyc 
        keystone-engine
        yara-python
      ])
    )
  ];
  runScript = pkgs.writeScript "idapro.sh" ''
    set -e
    ~/ida-pro-9.1/idapyswitch --auto-apply
    exec "~/ida-pro-9.1/ida"
  '';
  meta = {
    description = "The world's smartest and most feature-full disassembler";
    homepage = "https://hex-rays.com/ida-pro/";
    mainProgram = "ida";
    platforms = [ "x86_64-linux" ]; # Right now, the installation script only supports Linux.
  };
}