3
0
Fork 0
forked from mirrors/nixpkgs

mmex: 1.6.1 -> 1.6.3

This commit is contained in:
Weijia Wang 2023-02-28 12:52:35 +02:00
parent 745be5dfce
commit 74422033aa
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

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