Skip to content

Commit

Permalink
tamatool: fix darwin builds (#353904)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz authored Nov 6, 2024
2 parents 3f49ff3 + 94f930a commit 4a7b05c
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions pkgs/applications/emulators/tamatool/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{ lib
, stdenv
, fetchFromGitHub
, zip
, copyDesktopItems
, libpng
, SDL2
, SDL2_image
, darwin
{
lib,
stdenv,
fetchFromGitHub,
zip,
copyDesktopItems,
libpng,
SDL2,
SDL2_image,

# Optionally bundle a ROM file
, rom ? null
# Optionally bundle a ROM file
rom ? null,
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -43,8 +43,6 @@ stdenv.mkDerivation (finalAttrs: {
libpng
SDL2
SDL2_image
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
];

makeFlags = [
Expand All @@ -56,6 +54,10 @@ stdenv.mkDerivation (finalAttrs: {
"CC=${stdenv.cc.targetPrefix}cc"
];

env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-framework CoreFoundation";
};

desktopItems = [ "linux/tamatool.desktop" ];

installPhase = ''
Expand Down

0 comments on commit 4a7b05c

Please sign in to comment.