From ca485f4220237e8ab25a328c94d95474c2692e4d Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Mon, 3 Jan 2022 02:28:52 -0800 Subject: [PATCH] rgbds: 0.5.1 -> 0.5.2 * rgbds: 0.5.1 -> 0.5.2 (#149232) * rgbds: fix build on Darwin by disabling LTO Co-authored-by: Renaud --- pkgs/development/compilers/rgbds/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/rgbds/default.nix b/pkgs/development/compilers/rgbds/default.nix index 00b20abbda8..0d076f0cfae 100644 --- a/pkgs/development/compilers/rgbds/default.nix +++ b/pkgs/development/compilers/rgbds/default.nix @@ -2,15 +2,17 @@ stdenv.mkDerivation rec { pname = "rgbds"; - version = "0.5.1"; + version = "0.5.2"; src = fetchFromGitHub { owner = "gbdev"; repo = "rgbds"; rev = "v${version}"; - sha256 = "11b1hg2m2f60q5622rb0nxhrzzylsxjx0c8inbxifi6lvmj9ak4x"; + sha256 = "sha256-/GjxdB3Nt+XuKKQWjU12mS91U4FFoeP+9t0L+HsB/o8="; }; - nativeBuildInputs = [ bison flex pkg-config libpng ]; - installFlags = [ "PREFIX=\${out}" ]; + nativeBuildInputs = [ bison flex pkg-config ]; + buildInputs = [ libpng ]; + NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-fno-lto"; + installFlags = [ "PREFIX=${placeholder "out"}" ]; meta = with lib; { homepage = "https://rgbds.gbdev.io/";