mmex: 1.6.3 -> 1.8.0

This commit is contained in:
FliegendeWurst 2024-10-19 11:49:24 +02:00
parent c2f7a00e88
commit e39c6abaac

View File

@ -1,7 +1,9 @@
{ lib
, stdenv
, fetchFromGitHub
, appstream
, cmake
, fetchpatch
, gettext
, git
, makeWrapper
@ -17,16 +19,24 @@
stdenv.mkDerivation rec {
pname = "money-manager-ex";
version = "1.6.3";
version = "1.8.0";
src = fetchFromGitHub {
owner = "moneymanagerex";
repo = "moneymanagerex";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-TQgJ2Q4Z7+OtwuwkfPBgm2BmMKML9nmyFLSkmKJ1RE4=";
hash = "sha256-jV1jW0aFx95JpwzywEVajstnMKVcEtBdvyL7y6OLl+k=";
};
patches = [
(fetchpatch { # https://github.com/moneymanagerex/moneymanagerex/pull/6716
name = "workaround-appstream-1.0.3.patch";
url = "https://github.com/moneymanagerex/moneymanagerex/commit/bb98eab92d95b7315d27f4e59ae59b50587106d8.patch";
hash = "sha256-98OyFO2nnGBRTIirxZ3jX1NPvsw5kVT8nsCSSmyfabo=";
})
];
postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
substituteInPlace src/platfdep_mac.mm \
--replace "appearance.name == NSAppearanceNameDarkAqua" "NO"
@ -36,12 +46,14 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [
appstream # for appstreamcli
cmake
gettext
git
makeWrapper
pkg-config
wrapGAppsHook3
wxGTK32
] ++ lib.optionals stdenv.hostPlatform.isLinux [
lsb-release
];
@ -55,6 +67,8 @@ stdenv.mkDerivation rec {
darwin.libobjc
];
strictDeps = true;
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
"-Wno-deprecated-copy"
"-Wno-old-style-cast"