Ghidra: Difference between revisions

From NixOS Wiki
imported>GovanifY
Create the Ghidra page
 
Klinger (talk | contribs)
Category:Applications. Explain. Link.
Line 1: Line 1:
[https://www.nsa.gov/ghidra Ghidra] is a software reverse engineering (SRE) framework created and maintained by the American National Security Agency(NSA).
=== Building Ghidra on NixOS ===
=== Building Ghidra on NixOS ===


Line 23: Line 26:
}
}
</syntaxhighlight>
</syntaxhighlight>
[[Category:Applications]]

Revision as of 22:24, 18 June 2024

Ghidra is a software reverse engineering (SRE) framework created and maintained by the American National Security Agency(NSA).

Building Ghidra on NixOS

Building Ghidra on NixOS can be a bit more finnicky than usual because of the gradle setup. This is an example shell.nix file.

with import <nixpkgs> {};

pkgs.mkShell {
  buildInputs = [
    pkgs.jdk11
    pkgs.gradle
    pkgs.gcc
    pkgs.git
    pkgs.bison
    pkgs.flex
  ];

  shellHook = ''
    rm -rf /tmp/gradle &> /dev/null
    mkdir /tmp/gradle 
    export GRADLE_USER_HOME="/tmp/gradle" 
    echo "org.gradle.java.home=${pkgs.jdk11}/lib/openjdk" > /tmp/gradle/gradle.properties
  '';
}