nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #248029 from figsoda/zls

authored by

figsoda and committed by
GitHub
553fde8b 85585a7c

+35 -5
+7 -4
pkgs/development/tools/language-servers/zls/default.nix
··· 2 2 , stdenv 3 3 , fetchFromGitHub 4 4 , zigHook 5 + , callPackage 5 6 }: 6 7 7 8 stdenv.mkDerivation (finalAttrs: { 8 9 pname = "zls"; 9 - version = "0.10.0"; 10 + version = "0.11.0"; 10 11 11 12 src = fetchFromGitHub { 12 13 owner = "zigtools"; 13 14 repo = "zls"; 14 15 rev = finalAttrs.version; 15 16 fetchSubmodules = true; 16 - hash = "sha256-M0GG4KIMcHN+bEprUv6ISZkWNvWN12S9vqSKP+DRU9M="; 17 + hash = "sha256-WrbjJyc4pj7R4qExdzd0DOQ9Tz3TFensAfHdecBA8UI="; 17 18 }; 18 19 19 20 nativeBuildInputs = [ 20 21 zigHook 21 22 ]; 22 23 23 - dontConfigure = true; 24 + postPatch = '' 25 + ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p 26 + ''; 24 27 25 28 meta = { 26 29 description = "Zig LSP implementation + Zig Language Server"; 27 30 changelog = "https://github.com/zigtools/zls/releases/tag/${finalAttrs.version}"; 28 31 homepage = "https://github.com/zigtools/zls"; 29 32 license = lib.licenses.mit; 30 - maintainers = with lib.maintainers; [ fortuneteller2k ]; 33 + maintainers = with lib.maintainers; [ figsoda fortuneteller2k ]; 31 34 platforms = lib.platforms.unix; 32 35 }; 33 36 })
+27
pkgs/development/tools/language-servers/zls/deps.nix
··· 1 + # generated by zon2nix (https://github.com/figsoda/zon2nix) 2 + 3 + { linkFarm, fetchzip }: 4 + 5 + linkFarm "zig-packages" [ 6 + { 7 + name = "1220363c7e27b2d3f39de6ff6e90f9537a0634199860fea237a55ddb1e1717f5d6a5"; 8 + path = fetchzip { 9 + url = "https://gist.github.com/antlilja/8372900fcc09e38d7b0b6bbaddad3904/archive/6c3321e0969ff2463f8335da5601986cf2108690.tar.gz"; 10 + hash = "sha256-m/kr4kmkG2rLkAj5YwvM0HmXTd+chAiQHzYK6ozpWlw="; 11 + }; 12 + } 13 + { 14 + name = "122048992ca58a78318b6eba4f65c692564be5af3b30fbef50cd4abeda981b2e7fa5"; 15 + path = fetchzip { 16 + url = "https://github.com/ziglibs/known-folders/archive/fa75e1bc672952efa0cf06160bbd942b47f6d59b.tar.gz"; 17 + hash = "sha256-U/h4bVarq8CFKbFyNXKl3vBRPubYooLxA1xUz3qMGPE="; 18 + }; 19 + } 20 + { 21 + name = "122089a8247a693cad53beb161bde6c30f71376cd4298798d45b32740c3581405864"; 22 + path = fetchzip { 23 + url = "https://github.com/ziglibs/diffz/archive/90353d401c59e2ca5ed0abe5444c29ad3d7489aa.tar.gz"; 24 + hash = "sha256-3CdYo6WevT0alRwKmbABahjhFKz7V9rdkDUZ43VtDeU="; 25 + }; 26 + } 27 + ]
+1 -1
pkgs/top-level/all-packages.nix
··· 18346 18346 18347 18347 zls = callPackage ../development/tools/language-servers/zls { 18348 18348 zigHook = zigHook.override { 18349 - zig = buildPackages.zig_0_10; 18349 + zig = buildPackages.zig_0_11; 18350 18350 }; 18351 18351 }; 18352 18352