From 4e6fffab80904902cb57928228738c5e96a2e215 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 9 Nov 2024 20:21:29 -0800 Subject: [PATCH] neovide: unbreak on x86_64-darwin by using 11.3 SDK --- pkgs/by-name/ne/neovide/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ne/neovide/package.nix b/pkgs/by-name/ne/neovide/package.nix index 15c1d4ca7dbe..d23f77669caa 100644 --- a/pkgs/by-name/ne/neovide/package.nix +++ b/pkgs/by-name/ne/neovide/package.nix @@ -12,6 +12,7 @@ , pkg-config , python3 , removeReferencesTo +, apple-sdk_11 , cctools , SDL2 , fontconfig @@ -74,7 +75,7 @@ rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec { SDL2 fontconfig rustPlatform.bindgenHook - ]; + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ]; postFixup = let libPath = lib.makeLibraryPath ([ @@ -116,6 +117,6 @@ rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec { changelog = "https://github.com/neovide/neovide/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ ck3d ]; - platforms = platforms.linux ++ [ "aarch64-darwin" ]; + platforms = platforms.unix; }; }