1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/zls/default.nix

33 lines
819 B
Nix
Raw Normal View History

2021-04-23 20:38:02 +01:00
{ stdenv, lib, fetchFromGitHub, zig }:
stdenv.mkDerivation rec {
pname = "zls";
2021-06-06 07:01:19 +01:00
version = "unstable-2021-06-06";
2021-04-23 20:38:02 +01:00
src = fetchFromGitHub {
owner = "zigtools";
repo = pname;
2021-06-06 07:01:19 +01:00
rev = "39d87188647bd8c8eed304ee18f2dd1df6942f60";
sha256 = "sha256-22N508sVkP1OLySAijhtTPzk2fGf+FVnX9LTYRbRpB4=";
2021-04-23 20:38:02 +01:00
fetchSubmodules = true;
};
nativeBuildInputs = [ zig ];
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
2021-06-06 07:01:19 +01:00
zig build -Drelease-safe -Dcpu=baseline --prefix $out install
2021-04-23 20:38:02 +01: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-20 03:25:16 +01:00
license = licenses.mit;
2021-04-23 20:38:02 +01:00
maintainers = with maintainers; [ fortuneteller2k ];
};
}