git.iko.soy/typeable/nixpkgs
on master help sign in
wxhexeditor: fix compilation
commitc4514dfbb78c212fc6b3bbe68e2564c0833c59f3 authormarius851000 <mariusdavid@laposte.net> dateTue 3 Sep 2019, 10:09 (7 years ago) parente450699
2 files changed+38−4
pkgs/applications/editors/wxhexeditor/default.nix+3−4 pkgs/applications/editors/wxhexeditor/missing-semicolon.patch+35
pkgs/applications/editors/wxhexeditor/default.nix+3−4
@@ -1,7 +1,7 @@
11{ stdenv, fetchFromGitHub, fetchpatch, wxGTK, autoconf, automake, libtool, python, gettext }:
22
33stdenv.mkDerivation rec {
4− name = "wxHexEditor-${version}";
4+ pname = "wxHexEditor";
55 version = "0.24";
66
77 src = fetchFromGitHub {
@@ -26,11 +26,10 @@ stdenv.mkDerivation rec {
2626 url = https://github.com/EUA/wxHexEditor/commit/d0fa3ddc3e9dc9b05f90b650991ef134f74eed01.patch;
2727 sha256 = "1wcb70hrnhq72frj89prcqylpqs74xrfz3kdfdkq84p5qfz9svyj";
2828 })
29+ ./missing-semicolon.patch
2930 ];
3031
31− buildPhase = ''
32− make OPTFLAGS="-fopenmp"
33− '';
32+ makeFlags = [ "OPTFLAGS=-fopenmp" ];
3433
3534 meta = {
3635 description = "Hex Editor / Disk Editor for Huge Files or Devices";
pkgs/applications/editors/wxhexeditor/missing-semicolon.patchnew file+35
@@ -0,0 +1,35 @@
1+diff --git a/src/HexDialogs.cpp b/src/HexDialogs.cpp
2+index 091a6f9..12e6a78 100644
3+--- a/src/HexDialogs.cpp
4++++ b/src/HexDialogs.cpp
5+@@ -420,7 +420,7 @@ void FindDialog::OnChar( wxKeyEvent& event ){
6+ }
7+
8+ void FindDialog::EventHandler( wxCommandEvent& event ){
9+- WX_CLEAR_ARRAY(parent->HighlightArray )
10++ WX_CLEAR_ARRAY(parent->HighlightArray );
11+ parent->HighlightArray.Shrink();
12+
13+ if( event.GetId() == btnFind->GetId())
14+diff --git a/src/HexEditorCtrl/HexEditorCtrl.cpp b/src/HexEditorCtrl/HexEditorCtrl.cpp
15+index 7a3b0e2..f12097f 100644
16+--- a/src/HexEditorCtrl/HexEditorCtrl.cpp
17++++ b/src/HexEditorCtrl/HexEditorCtrl.cpp
18+@@ -64,9 +64,9 @@ HexEditorCtrl::~HexEditorCtrl( void ){
19+ Dynamic_Disconnector();
20+ Clear();
21+
22+- WX_CLEAR_ARRAY(MainTagArray)
23+- WX_CLEAR_ARRAY(HighlightArray)
24+- WX_CLEAR_ARRAY(CompareArray)
25++ WX_CLEAR_ARRAY(MainTagArray);
26++ WX_CLEAR_ARRAY(HighlightArray);
27++ WX_CLEAR_ARRAY(CompareArray);
28+
29+ MainTagArray.Shrink();
30+ HighlightArray.Shrink();
31+@@ -1224,4 +1224,3 @@ void wxHugeScrollBar::OnOffsetScroll( wxScrollEvent& event ){
32+ #endif
33+ event.Skip();
34+ }
35+-