mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-13 16:07:30 +03:00
lua-language-server: format with nixfmt-rfc-style
This commit is contained in:
parent
bb7cbb1f6e
commit
d31c82d09b
@ -1,4 +1,13 @@
|
||||
{ lib, stdenv, fetchFromGitHub, ninja, makeWrapper, CoreFoundation, Foundation, ditto }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
ninja,
|
||||
makeWrapper,
|
||||
CoreFoundation,
|
||||
Foundation,
|
||||
ditto,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "lua-language-server";
|
||||
@ -23,29 +32,29 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
ditto
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# filewatch tests are failing on darwin
|
||||
# this feature is not used in lua-language-server
|
||||
sed -i /filewatch/d 3rd/bee.lua/test/test.lua
|
||||
postPatch =
|
||||
''
|
||||
# filewatch tests are failing on darwin
|
||||
# this feature is not used in lua-language-server
|
||||
sed -i /filewatch/d 3rd/bee.lua/test/test.lua
|
||||
|
||||
pushd 3rd/luamake
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
# 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++,'
|
||||
'';
|
||||
pushd 3rd/luamake
|
||||
''
|
||||
+ lib.optionalString stdenv.isDarwin ''
|
||||
# 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/${if stdenv.isDarwin then "macos" else "linux"}.ninja"
|
||||
];
|
||||
ninjaFlags = [ "-fcompile/ninja/${if stdenv.isDarwin then "macos" else "linux"}.ninja" ];
|
||||
|
||||
postBuild = ''
|
||||
popd
|
||||
@ -80,7 +89,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
homepage = "https://github.com/luals/lua-language-server";
|
||||
changelog = "https://github.com/LuaLS/lua-language-server/blob/${finalAttrs.version}/changelog.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda gepbird sei40kr ];
|
||||
maintainers = with maintainers; [
|
||||
figsoda
|
||||
gepbird
|
||||
sei40kr
|
||||
];
|
||||
mainProgram = "lua-language-server";
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user