mmex: 1.6.3 -> 1.8.0 (#349736)
This commit is contained in:
commit
8f3c3f6a03
@ -1,7 +1,9 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, appstream
|
||||||
, cmake
|
, cmake
|
||||||
|
, fetchpatch
|
||||||
, gettext
|
, gettext
|
||||||
, git
|
, git
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
@ -17,16 +19,24 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "money-manager-ex";
|
pname = "money-manager-ex";
|
||||||
version = "1.6.3";
|
version = "1.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "moneymanagerex";
|
owner = "moneymanagerex";
|
||||||
repo = "moneymanagerex";
|
repo = "moneymanagerex";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
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) ''
|
postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
|
||||||
substituteInPlace src/platfdep_mac.mm \
|
substituteInPlace src/platfdep_mac.mm \
|
||||||
--replace "appearance.name == NSAppearanceNameDarkAqua" "NO"
|
--replace "appearance.name == NSAppearanceNameDarkAqua" "NO"
|
||||||
@ -36,12 +46,14 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
appstream # for appstreamcli
|
||||||
cmake
|
cmake
|
||||||
gettext
|
gettext
|
||||||
git
|
git
|
||||||
makeWrapper
|
makeWrapper
|
||||||
pkg-config
|
pkg-config
|
||||||
wrapGAppsHook3
|
wrapGAppsHook3
|
||||||
|
wxGTK32
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
lsb-release
|
lsb-release
|
||||||
];
|
];
|
||||||
@ -55,6 +67,8 @@ stdenv.mkDerivation rec {
|
|||||||
darwin.libobjc
|
darwin.libobjc
|
||||||
];
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
|
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
|
||||||
"-Wno-deprecated-copy"
|
"-Wno-deprecated-copy"
|
||||||
"-Wno-old-style-cast"
|
"-Wno-old-style-cast"
|
||||||
|
Loading…
Reference in New Issue
Block a user