Merge pull request #218350 from wegank/mmex-bump

mmex: 1.6.1 -> 1.6.3
This commit is contained in:
Weijia Wang 2023-02-28 14:03:37 +02:00 committed by GitHub
commit 44b9939b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

View File

@ -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 ''

View File

@ -31452,8 +31452,7 @@ with pkgs;
MMA = callPackage ../applications/audio/MMA { };
mmex = callPackage ../applications/office/mmex {
inherit (darwin) libobjc;
wxGTK = wxGTK32.override {
wxGTK32 = wxGTK32.override {
withWebKit = true;
};
};