tamatool: fix darwin builds
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
, libpng
|
||||
, SDL2
|
||||
, SDL2_image
|
||||
, darwin
|
||||
|
||||
# Optionally bundle a ROM file
|
||||
, rom ? null
|
||||
@@ -43,8 +42,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libpng
|
||||
SDL2
|
||||
SDL2_image
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreFoundation
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
@@ -56,6 +53,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
NIX_LDFLAGS = "-framework CoreFoundation";
|
||||
};
|
||||
|
||||
desktopItems = [ "linux/tamatool.desktop" ];
|
||||
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user