2022-01-11 23:40:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, wxGTK, autoconf, automake, libtool, python2, gettext }:
|
2014-08-22 12:24:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-03 09:09:25 +01:00
|
|
|
pname = "wxHexEditor";
|
2018-05-28 13:59:57 +01:00
|
|
|
version = "0.24";
|
2014-08-22 12:24:18 +01:00
|
|
|
|
2018-03-12 21:43:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "wxHexEditor";
|
|
|
|
owner = "EUA";
|
2018-05-28 13:59:57 +01:00
|
|
|
rev = "v${version}";
|
2018-03-12 21:43:02 +00:00
|
|
|
sha256 = "08xnhaif8syv1fa0k6lc3jm7yg2k50b02lyds8w0jyzh4xi5crqj";
|
2014-08-22 12:24:18 +01:00
|
|
|
};
|
|
|
|
|
2022-03-31 02:11:06 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
|
|
buildInputs = [ wxGTK libtool python2 gettext ];
|
2014-08-22 12:24:18 +01:00
|
|
|
|
2018-03-12 21:43:02 +00:00
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace Makefile --replace "/usr" "$out"
|
2014-08-22 12:24:18 +01:00
|
|
|
substituteInPlace Makefile --replace "mhash; ./configure" "mhash; ./configure --prefix=$out"
|
|
|
|
'';
|
|
|
|
|
2018-03-12 21:43:02 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/EUA/wxHexEditor/issues/90
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/EUA/wxHexEditor/commit/d0fa3ddc3e9dc9b05f90b650991ef134f74eed01.patch";
|
2018-03-12 21:43:02 +00:00
|
|
|
sha256 = "1wcb70hrnhq72frj89prcqylpqs74xrfz3kdfdkq84p5qfz9svyj";
|
|
|
|
})
|
2019-09-03 09:09:25 +01:00
|
|
|
./missing-semicolon.patch
|
2018-03-12 21:43:02 +00:00
|
|
|
];
|
|
|
|
|
2019-09-03 09:09:25 +01:00
|
|
|
makeFlags = [ "OPTFLAGS=-fopenmp" ];
|
2014-08-22 12:24:18 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.wxhexeditor.org/";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2014-08-22 12:24:18 +01:00
|
|
|
};
|
|
|
|
}
|