Unbork journals audit logs and introduce audit option (#379629)
[NixPkgs.git] / pkgs / by-name / zl / zls / package.nix
blob55d0c5a7a57dc8dc6643926e9a7c9946b433a8bc
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   zig_0_13,
6   callPackage,
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "zls";
11   version = "0.13.0";
13   src = fetchFromGitHub {
14     owner = "zigtools";
15     repo = "zls";
16     rev = finalAttrs.version;
17     fetchSubmodules = true;
18     hash = "sha256-vkFGoKCYUk6B40XW2T/pdhir2wzN1kpFmlLcoLwJx1U=";
19   };
21   zigBuildFlags = [
22     "-Dversion_data_path=${zig_0_13.src}/doc/langref.html.in"
23   ];
25   nativeBuildInputs = [ zig_0_13.hook ];
27   postPatch = ''
28     ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
29   '';
31   meta = {
32     description = "Zig LSP implementation + Zig Language Server";
33     mainProgram = "zls";
34     changelog = "https://github.com/zigtools/zls/releases/tag/${finalAttrs.version}";
35     homepage = "https://github.com/zigtools/zls";
36     license = lib.licenses.mit;
37     maintainers = with lib.maintainers; [
38       figsoda
39       moni
40       _0x5a4
41     ];
42     platforms = lib.platforms.unix;
43   };