3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/embedded/arduino/arduino-language-server/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
923 B
Nix
Raw Normal View History

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