summary refs log tree commit diff
path: root/pkgs/applications/office/mmex
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-02-28 12:52:35 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-02-28 12:52:35 +0200
commit74422033aa269c101b3c4d2f27acd335ffe97c32 (patch)
tree02e2e5a24b746e5dbef7c8717a5ef6fb60032426 /pkgs/applications/office/mmex
parent745be5dfced16f3b788ef67378240086c34fc929 (diff)
downloadnixpkgs-74422033aa269c101b3c4d2f27acd335ffe97c32.tar
nixpkgs-74422033aa269c101b3c4d2f27acd335ffe97c32.tar.gz
nixpkgs-74422033aa269c101b3c4d2f27acd335ffe97c32.tar.bz2
nixpkgs-74422033aa269c101b3c4d2f27acd335ffe97c32.tar.lz
nixpkgs-74422033aa269c101b3c4d2f27acd335ffe97c32.tar.xz
nixpkgs-74422033aa269c101b3c4d2f27acd335ffe97c32.tar.zst
nixpkgs-74422033aa269c101b3c4d2f27acd335ffe97c32.zip
mmex: 1.6.1 -> 1.6.3
Diffstat (limited to 'pkgs/applications/office/mmex')
-rw-r--r--pkgs/applications/office/mmex/default.nix17
1 files changed, 11 insertions, 6 deletions
diff --git a/pkgs/applications/office/mmex/default.nix b/pkgs/applications/office/mmex/default.nix
index 4846279569f..e1f39e8964c 100644
--- a/pkgs/applications/office/mmex/default.nix
+++ b/pkgs/applications/office/mmex/default.nix
@@ -10,26 +10,29 @@
 , wrapGAppsHook
 , curl
 , sqlite
-, wxGTK
+, wxGTK32
 , gtk3
-, libobjc
+, darwin
 }:
 
 stdenv.mkDerivation rec {
   pname = "money-manager-ex";
-  version = "1.6.1";
+  version = "1.6.3";
 
   src = fetchFromGitHub {
     owner = "moneymanagerex";
     repo = "moneymanagerex";
     rev = "v${version}";
     fetchSubmodules = true;
-    sha256 = "sha256-0zUZBkdFLvc32gkGqu0pYlVsHuwjhaVZzu9acSmNfu8=";
+    hash = "sha256-TQgJ2Q4Z7+OtwuwkfPBgm2BmMKML9nmyFLSkmKJ1RE4=";
   };
 
   postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
     substituteInPlace src/platfdep_mac.mm \
       --replace "appearance.name == NSAppearanceNameDarkAqua" "NO"
+  '' + lib.optionalString (stdenv.isLinux && !stdenv.isx86_64) ''
+    substituteInPlace 3rd/CMakeLists.txt \
+      --replace "-msse4.2 -maes" ""
   '';
 
   nativeBuildInputs = [
@@ -46,14 +49,16 @@ stdenv.mkDerivation rec {
   buildInputs = [
     curl
     sqlite
-    wxGTK
+    wxGTK32
     gtk3
   ] ++ lib.optionals stdenv.isDarwin [
-    libobjc
+    darwin.libobjc
   ];
 
   env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
+    "-Wno-deprecated-copy"
     "-Wno-old-style-cast"
+    "-Wno-unused-parameter"
   ]);
 
   postInstall = lib.optionalString stdenv.isDarwin ''