Merge pull request #279185 from n8henrie/neovide-aarch64-darwin

neovide: fix build for aarch64-darwin

authored by Christian Kögler and committed by GitHub 0edcca6f c64c04e8

+7 -6
+7 -6
pkgs/applications/editors/neovim/neovide/default.nix
··· 6 , fetchgit 7 , runCommand 8 , gn 9 , ninja 10 , makeWrapper 11 , pkg-config ··· 67 removeReferencesTo 68 ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; 69 70 - # All tests passes but at the end cargo prints for unknown reason: 71 - # error: test failed, to rerun pass '--bin neovide' 72 - # Increasing the loglevel did not help. In a nix-shell environment 73 - # the failure do not occure. 74 - doCheck = false; 75 76 buildInputs = [ 77 SDL2 ··· 80 ] ++ lib.optionals stdenv.isDarwin [ 81 darwin.apple_sdk.frameworks.AppKit 82 ]; 83 84 postFixup = let 85 libPath = lib.makeLibraryPath ([ ··· 117 license = with licenses; [ mit ]; 118 maintainers = with maintainers; [ ck3d multisn8 ]; 119 platforms = platforms.all; 120 - badPlatforms = platforms.darwin; 121 }; 122 }
··· 6 , fetchgit 7 , runCommand 8 , gn 9 + , neovim 10 , ninja 11 , makeWrapper 12 , pkg-config ··· 68 removeReferencesTo 69 ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; 70 71 + nativeCheckInputs = [ neovim ]; 72 73 buildInputs = [ 74 SDL2 ··· 77 ] ++ lib.optionals stdenv.isDarwin [ 78 darwin.apple_sdk.frameworks.AppKit 79 ]; 80 + 81 + env = lib.optionalAttrs stdenv.isDarwin { 82 + # Work around https://github.com/NixOS/nixpkgs/issues/166205 83 + NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; 84 + }; 85 86 postFixup = let 87 libPath = lib.makeLibraryPath ([ ··· 119 license = with licenses; [ mit ]; 120 maintainers = with maintainers; [ ck3d multisn8 ]; 121 platforms = platforms.all; 122 }; 123 }