Merge pull request #120450 from fortuneteller2k/add-zls

This commit is contained in:
Sandro 2021-04-24 03:59:57 +02:00 committed by GitHub
commit bbffc43d56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ stdenv, lib, fetchFromGitHub, zig }:
stdenv.mkDerivation rec {
pname = "zls";
version = "0.1.0";
src = fetchFromGitHub {
owner = "zigtools";
repo = pname;
rev = version;
sha256 = "sha256-A4aOdmlIxBUeKyczzLxH4y1Rl9TgE1EeiKGbWY4p/00=";
fetchSubmodules = true;
};
nativeBuildInputs = [ zig ];
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
zig build -Drelease-safe --prefix $out install
'';
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";
license = [ licenses.mit ];
maintainers = with maintainers; [ fortuneteller2k ];
};
}

View file

@ -13692,6 +13692,8 @@ in
ytt = callPackage ../development/tools/ytt {};
zls = callPackage ../development/tools/zls { };
zydis = callPackage ../development/libraries/zydis { };
winpdb = callPackage ../development/tools/winpdb { };