depot/third_party/nixpkgs/pkgs/development/embedded/arduino/arduino-language-server/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

33 lines
923 B
Nix

{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "arduino-language-server";
version = "0.7.2";
src = fetchFromGitHub {
owner = "arduino";
repo = "arduino-language-server";
rev = version;
hash = "sha256-7xuVCD27gE8uDFBTQgBwH8bx8OWc9Lj71o27FYOSiTY=";
};
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 ];
};
}