2021-04-25 03:57:28 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, zig }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zls";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.9.0";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigtools";
|
|
|
|
repo = pname;
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-MVo21qNCZop/HXBqrPcosGbRY+W69KNCc1DfnH47GsI=";
|
2021-04-25 03:57:28 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ zig ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
zig build -Drelease-safe -Dcpu=baseline --prefix $out install
|
2021-04-25 03:57:28 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Zig LSP implementation + Zig Language Server";
|
|
|
|
changelog = "https://github.com/zigtools/zls/releases/tag/${version}";
|
|
|
|
homepage = "https://github.com/zigtools/zls";
|
2021-05-28 09:39:13 +00:00
|
|
|
license = licenses.mit;
|
2021-04-25 03:57:28 +00:00
|
|
|
maintainers = with maintainers; [ fortuneteller2k ];
|
|
|
|
};
|
|
|
|
}
|