forked from mirrors/nixpkgs
Merge pull request #180941 from malob/sumneko-lua-language-server-darwin-sdk-update
This commit is contained in:
commit
e9109d950b
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, ninja, makeWrapper, darwin }:
|
||||
{ lib, stdenv, fetchFromGitHub, ninja, makeWrapper, CoreFoundation, Foundation }:
|
||||
let
|
||||
target = if stdenv.isDarwin then "macOS" else "Linux";
|
||||
in
|
||||
|
@ -20,17 +20,10 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreFoundation
|
||||
darwin.apple_sdk.frameworks.Foundation
|
||||
CoreFoundation
|
||||
Foundation
|
||||
];
|
||||
|
||||
# Disable cwd support on x86 darwin, because it requires macOS>=10.15
|
||||
preConfigure = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
|
||||
for file in 3rd/bee.lua/bee/subprocess/subprocess_posix.cpp 3rd/luamake/3rd/bee.lua/bee/subprocess/subprocess_posix.cpp; do
|
||||
substituteInPlace $file --replace '#define USE_POSIX_SPAWN 1' ""
|
||||
done
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
cd 3rd/luamake
|
||||
''
|
||||
|
|
|
@ -35432,7 +35432,9 @@ with pkgs;
|
|||
|
||||
sqsh = callPackage ../development/tools/sqsh { };
|
||||
|
||||
sumneko-lua-language-server = callPackage ../development/tools/sumneko-lua-language-server { };
|
||||
sumneko-lua-language-server = darwin.apple_sdk_11_0.callPackage ../development/tools/sumneko-lua-language-server {
|
||||
inherit (darwin.apple_sdk_11_0.frameworks) CoreFoundation Foundation;
|
||||
};
|
||||
|
||||
sysz = callPackage ../tools/misc/sysz { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue