summary refs log tree commit diff
diff options
context:
space:
mode:
authorLongrin Wischnewski <robberer@freakmail.de>2014-08-22 13:24:18 +0200
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-08-30 12:24:43 +0100
commit33cbd6687c32d1a849cdf3f4c7ee0863edc46477 (patch)
tree1efe72287c6606df3ed718d55b9782b4302a9337
parent1f9d579c78c9c4e62cf19ea64f9154f2c1fc8bb5 (diff)
downloadnixlib-33cbd6687c32d1a849cdf3f4c7ee0863edc46477.tar
nixlib-33cbd6687c32d1a849cdf3f4c7ee0863edc46477.tar.gz
nixlib-33cbd6687c32d1a849cdf3f4c7ee0863edc46477.tar.bz2
nixlib-33cbd6687c32d1a849cdf3f4c7ee0863edc46477.tar.lz
nixlib-33cbd6687c32d1a849cdf3f4c7ee0863edc46477.tar.xz
nixlib-33cbd6687c32d1a849cdf3f4c7ee0863edc46477.tar.zst
nixlib-33cbd6687c32d1a849cdf3f4c7ee0863edc46477.zip
wxhexeditor: adding version 0.22
wxhexeditor: add the package to all-packages.nix

wxhexeditor: fix shebang
-rw-r--r--pkgs/applications/editors/wxhexeditor/default.nix41
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/editors/wxhexeditor/default.nix b/pkgs/applications/editors/wxhexeditor/default.nix
new file mode 100644
index 000000000000..de423987c02b
--- /dev/null
+++ b/pkgs/applications/editors/wxhexeditor/default.nix
@@ -0,0 +1,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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 94928d92081c..f9c1b56c309d 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -10091,6 +10091,8 @@ let
       gtk_modules = [ libcanberra ];
     };
 
+  wxhexeditor = callPackage ../applications/editors/wxhexeditor { };
+
   x11vnc = callPackage ../tools/X11/x11vnc { };
 
   x2vnc = callPackage ../tools/X11/x2vnc { };