@@ -1,25 +1,35 @@
1−{ stdenv, fetchurl, wxGTK, autoconf, automake, libtool, python, gettext, bash }:
1+{ stdenv, fetchFromGitHub, fetchpatch, wxGTK, autoconf, automake, libtool, python, gettext, bash }:
22
33stdenv.mkDerivation rec {
44 name = "wxHexEditor-${version}";
5− version = "v0.22";
5+ version = "v0.24";
66
7− src = fetchurl {
8− url = "mirror://sourceforge/wxhexeditor/${name}-src.tar.bz2";
9− sha256 = "15ir038g4lyw1q5bsay974hvj0nkg2yd9kccwxz808cd45fp411w";
7+ src = fetchFromGitHub {
8+ repo = "wxHexEditor";
9+ owner = "EUA";
10+ rev = version;
11+ sha256 = "08xnhaif8syv1fa0k6lc3jm7yg2k50b02lyds8w0jyzh4xi5crqj";
1012 };
1113
1214 buildInputs = [ wxGTK autoconf automake libtool python gettext ];
1315
14− patchPhase = ''
15− substituteInPlace Makefile --replace "/usr/local" "$out"
16+ preConfigure = "patchShebangs .";
17+
18+ prePatch = ''
19+ substituteInPlace Makefile --replace "/usr" "$out"
1620 substituteInPlace Makefile --replace "mhash; ./configure" "mhash; ./configure --prefix=$out"
17− substituteInPlace udis86/autogen.sh --replace "/bin/bash" "${bash}/bin/bash"
1821 '';
1922
23+ patches = [
24+ # https://github.com/EUA/wxHexEditor/issues/90
25+ (fetchpatch {
26+ url = https://github.com/EUA/wxHexEditor/commit/d0fa3ddc3e9dc9b05f90b650991ef134f74eed01.patch;
27+ sha256 = "1wcb70hrnhq72frj89prcqylpqs74xrfz3kdfdkq84p5qfz9svyj";
28+ })
29+ ];
30+
2031 buildPhase = ''
2132 make OPTFLAGS="-fopenmp"
22−
2333 '';
2434
2535 meta = {