git.iko.soy/typeable/nixpkgs
on master help sign in
wxhexeditor: 0.22 -> 0.24 (#36832)
commit991e5ca486544a46eba957915902b9baa57896b1 authorsymphorien <symphorien@users.noreply.github.com> dateMon 12 Mar 2018, 21:43 (9 years ago) parent07f908f
2 files changed+22−10
pkgs/applications/editors/wxhexeditor/default.nix+19−9 pkgs/top-level/all-packages.nix+3−1
pkgs/applications/editors/wxhexeditor/default.nix+19−9
@@ -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 = {
pkgs/top-level/all-packages.nix+3−1
@@ -18289,7 +18289,9 @@ with pkgs;
1828918289
1829018290 wtftw = callPackage ../applications/window-managers/wtftw {};
1829118291
18292− wxhexeditor = callPackage ../applications/editors/wxhexeditor { };
18292+ wxhexeditor = callPackage ../applications/editors/wxhexeditor {
18293+ wxGTK = wxGTK31;
18294+ };
1829318295
1829418296 wxcam = callPackage ../applications/video/wxcam {
1829518297 inherit (gnome2) libglade;