depot/third_party/nixpkgs/pkgs/development/tools/language-servers/zls/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

36 lines
829 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, zig_0_11
, callPackage
}:
stdenv.mkDerivation (finalAttrs: {
pname = "zls";
version = "0.11.0";
src = fetchFromGitHub {
owner = "zigtools";
repo = "zls";
rev = finalAttrs.version;
fetchSubmodules = true;
hash = "sha256-WrbjJyc4pj7R4qExdzd0DOQ9Tz3TFensAfHdecBA8UI=";
};
nativeBuildInputs = [
zig_0_11.hook
];
postPatch = ''
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
'';
meta = {
description = "Zig LSP implementation + Zig Language Server";
changelog = "https://github.com/zigtools/zls/releases/tag/${finalAttrs.version}";
homepage = "https://github.com/zigtools/zls";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ figsoda fortuneteller2k ];
platforms = lib.platforms.unix;
};
})