anchor.diff:      makeWrapper
     ];
   
  +  buildInputs = lib.optionals stdenv.isDarwin [
  +    darwin.apple_sdk.frameworks.CoreFoundation
  +    darwin.apple_sdk.frameworks.Foundation
  +  ];
  +
     preBuild = ''
       cd 3rd/luamake
  +  ''
  +  + lib.optionalString stdenv.isDarwin ''
  +    # Needed for the test
  +    export HOME=/var/empty
  +    # This package uses the program clang for C and C++ files. The language
  +    # is selected via the command line argument -std, but this do not work
  +    # in combination with the nixpkgs clang wrapper. Therefor we have to
  +    # find all c++ compiler statements and replace $cc (which expands to
  +    # clang) with clang++.
  +    sed -i compile/ninja/macos.ninja \
  +      -e '/c++/s,$cc,clang++,' \
  +      -e '/test.lua/s,= .*,= true,' \
  +      -e '/ldl/s,$cc,clang++,'
  +    sed -i scripts/compiler/gcc.lua \
  +      -e '/cxx_/s,$cc,clang++,'
     '';
   
     ninjaFlags = [
  -    "-fcompile/ninja/linux.ninja"
  +    "-fcompile/ninja/${lib.toLower target}.ninja"
     ];
   
     postBuild = ''
  
positive.code: { lib, stdenv, fetchFromGitHub, ninja, makeWrapper }:
  
  stdenv.mkDerivation rec {
    pname = "sumneko-lua-language-server";
    version = "2.5.1";
  
negative.code:     homepage = "https://github.com/sumneko/lua-language-server";
      license = licenses.mit;
      maintainers = with maintainers; [ mjlbach ];
      platforms = platforms.linux ++ platforms.darwin;
      mainProgram = "lua-language-server";
    };
  }
  