summary refs log tree commit diff
path: root/pkgs/applications/editors/wxhexeditor/default.nix
blob: de423987c02bdc536f4b4c00f1c852a11b2eafec (plain) (blame)
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
{ stdenv, fetchurl, wxGTK, autoconf, automake, libtool, python, gettext, bash }:

stdenv.mkDerivation rec {
  name = "wxHexEditor-${version}";
  version = "v0.22";

  src = fetchurl {
    url = "mirror://sourceforge/wxhexeditor/${name}-src.tar.bz2";
    sha256 = "15ir038g4lyw1q5bsay974hvj0nkg2yd9kccwxz808cd45fp411w";
  };

  buildInputs = [ wxGTK autoconf automake libtool python gettext ];

  patchPhase = ''
    substituteInPlace Makefile --replace "/usr/local" "$out"
    substituteInPlace Makefile --replace "mhash; ./configure" "mhash; ./configure --prefix=$out"
    substituteInPlace udis86/autogen.sh --replace "/bin/bash" "${bash}/bin/bash"
  '';

  buildPhase = ''
    make OPTFLAGS="-fopenmp"

  '';

  meta = {
    description = "Hex Editor / Disk Editor for Huge Files or Devices";
    longDescription = ''
      This is not an ordinary hex editor, but could work as low level disk editor too.
      If you have problems with your HDD or partition, you can recover your data from HDD or
      from partition via editing sectors in raw hex.
      You can edit your partition tables or you could recover files from File System by hand
      with help of wxHexEditor.
      Or you might want to analyze your big binary files, partitions, devices... If you need
      a good reverse engineer tool like a good hex editor, you welcome.
      wxHexEditor could edit HDD/SDD disk devices or partitions in raw up to exabyte sizes.
    '';
    homepage = "http://www.wxhexeditor.org/";
    license = stdenv.lib.licenses.gpl2;
    platforms = stdenv.lib.platforms.linux;
  };
}