From f68295e52ef3af4e2cab1a92ce32e6644271d96d Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sun, 18 Jun 2023 23:05:33 +0200 Subject: [PATCH] mmlgui: unstable-2023-03-19 -> unstable-2023-06-12, fix cross --- pkgs/applications/audio/mmlgui/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/audio/mmlgui/default.nix b/pkgs/applications/audio/mmlgui/default.nix index 23f592703763..deafd47a8374 100644 --- a/pkgs/applications/audio/mmlgui/default.nix +++ b/pkgs/applications/audio/mmlgui/default.nix @@ -15,14 +15,14 @@ stdenv.mkDerivation rec { pname = "mmlgui"; - version = "unstable-2023-03-19"; + version = "unstable-2023-06-12"; src = fetchFromGitHub { owner = "superctr"; repo = "mmlgui"; - rev = "59ac28c0008e227c03799cce85b77f96241159b1"; + rev = "d680f576aba769b0d63300fbed57a0e9e54dfa4b"; fetchSubmodules = true; - sha256 = "0CHRUizhg/WOWhDOsFqRiGu/m/U7xt5du8Uvnl7kxpU="; + hash = "sha256-BqwayGQBIa0ru22Xci8vHNYPFr9scZSdrUOlDtGBnno="; }; postPatch = '' @@ -31,10 +31,18 @@ stdenv.mkDerivation rec { # Removing a pkgconf-specific option makes it work with pkg-config substituteInPlace libvgm.mak \ --replace '--with-path=/usr/local/lib/pkgconfig' "" + + # Use correct pkg-config + substituteInPlace {imgui,libvgm}.mak \ + --replace 'pkg-config' "\''$(PKG_CONFIG)" + + # Don't force building tests substituteInPlace Makefile \ --replace 'all: $(MMLGUI_BIN) test' 'all: $(MMLGUI_BIN)' ''; + strictDeps = true; + nativeBuildInputs = [ pkg-config ]; @@ -51,7 +59,7 @@ stdenv.mkDerivation rec { Cocoa ]; - nativeCheckInputs = [ + checkInputs = [ cppunit ]; @@ -61,7 +69,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - doCheck = true; + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; installPhase = '' runHook preInstall