aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/editors/wxhexeditor/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/editors/wxhexeditor/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/editors/wxhexeditor/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/editors/wxhexeditor/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/editors/wxhexeditor/default.nix
new file mode 100644
index 000000000000..9b0fd592a6a2
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/applications/editors/wxhexeditor/default.nix
@@ -0,0 +1,50 @@
+{ stdenv, fetchFromGitHub, fetchpatch, wxGTK, autoconf, automake, libtool, python, gettext }:
+
+stdenv.mkDerivation rec {
+ pname = "wxHexEditor";
+ version = "0.24";
+
+ src = fetchFromGitHub {
+ repo = "wxHexEditor";
+ owner = "EUA";
+ rev = "v${version}";
+ sha256 = "08xnhaif8syv1fa0k6lc3jm7yg2k50b02lyds8w0jyzh4xi5crqj";
+ };
+
+ buildInputs = [ wxGTK autoconf automake libtool python gettext ];
+
+ preConfigure = "patchShebangs .";
+
+ prePatch = ''
+ substituteInPlace Makefile --replace "/usr" "$out"
+ substituteInPlace Makefile --replace "mhash; ./configure" "mhash; ./configure --prefix=$out"
+ '';
+
+ patches = [
+ # https://github.com/EUA/wxHexEditor/issues/90
+ (fetchpatch {
+ url = "https://github.com/EUA/wxHexEditor/commit/d0fa3ddc3e9dc9b05f90b650991ef134f74eed01.patch";
+ sha256 = "1wcb70hrnhq72frj89prcqylpqs74xrfz3kdfdkq84p5qfz9svyj";
+ })
+ ./missing-semicolon.patch
+ ];
+
+ makeFlags = [ "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;
+ };
+}