5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
41 lines
938 B
Nix
41 lines
938 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, zig_0_13
|
|
, callPackage
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "zls";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigtools";
|
|
repo = "zls";
|
|
rev = finalAttrs.version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-vkFGoKCYUk6B40XW2T/pdhir2wzN1kpFmlLcoLwJx1U=";
|
|
};
|
|
|
|
zigBuildFlags = [
|
|
"-Dversion_data_path=${zig_0_13.src}/doc/langref.html.in"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
zig_0_13.hook
|
|
];
|
|
|
|
postPatch = ''
|
|
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
|
|
'';
|
|
|
|
meta = {
|
|
description = "Zig LSP implementation + Zig Language Server";
|
|
mainProgram = "zls";
|
|
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 moni _0x5a4 ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|