arduino-language-server: init at 0.7.1

This commit is contained in:
BattleCh1cken 2022-10-10 11:05:37 -04:00
parent 1d6b5d368e
commit 85fa4ac03e
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "arduino-language-server";
version = "0.7.1";
src = fetchFromGitHub {
owner = "arduino";
repo = "arduino-language-server";
rev = version;
hash = "sha256-FnkXtjktj22LCkmFPxzQ72qiVBC1WR/ZiwMsmZPL578=";
};
subPackages = [ "." ];
vendorHash = "sha256-Xa26ilo95sQ/6dGvl4gB2bb0vzWXr+WPKLezAnZPeqM=";
doCheck = false;
ldflags = [
"-s"
"-w"
"-X github.com/arduino/arduino-language-server/version.versionString=${version}"
"-X github.com/arduino/arduino-language-server/version.commit=unknown"
] ++ lib.optionals stdenv.isLinux [ "-extldflags '-static'" ];
meta = with lib; {
inherit (src.meta) homepage;
description = "An Arduino Language Server based on Clangd to Arduino code autocompletion";
license = licenses.asl20;
maintainers = with maintainers; [ BattleCh1cken ];
};
}

View File

@ -2063,6 +2063,8 @@ with pkgs;
arduino-core = callPackage ../development/embedded/arduino/arduino-core/chrootenv.nix { }; arduino-core = callPackage ../development/embedded/arduino/arduino-core/chrootenv.nix { };
arduino-core-unwrapped = callPackage ../development/embedded/arduino/arduino-core { }; arduino-core-unwrapped = callPackage ../development/embedded/arduino/arduino-core { };
arduino-language-server = callPackage ../development/embedded/arduino/arduino-language-server { };
arduino-mk = callPackage ../development/embedded/arduino/arduino-mk {}; arduino-mk = callPackage ../development/embedded/arduino/arduino-mk {};
apio = python3Packages.callPackage ../development/embedded/fpga/apio { }; apio = python3Packages.callPackage ../development/embedded/fpga/apio { };