diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-04-24 03:59:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 03:59:57 +0200 |
commit | bbffc43d56992d53272c1263aab169b86cf59fc1 (patch) | |
tree | 8612cb755f14f7bbcc01a3f4389a21cee81f4f17 /pkgs/development | |
parent | 65499c8a82c081d17daecc0663c836d09da7b73d (diff) | |
parent | c0cca46ef08eb8af2d50a5b9087fafa0c43ba640 (diff) |
Merge pull request #120450 from fortuneteller2k/add-zls
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/zls/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/zls/default.nix b/pkgs/development/tools/zls/default.nix new file mode 100644 index 0000000000000..6adf3a2ae9b7c --- /dev/null +++ b/pkgs/development/tools/zls/default.nix @@ -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 ]; + }; +} |