Skip to content

Commit

Permalink
nix: add latest version of zls to flake.nix
Browse files Browse the repository at this point in the history
I know not everybody uses ZLS (or LSPs in general) but I think it's very
useful and it's very handy to have it in the `flake.nix` to keep it up
to date with the `zig` version.

As with a lot of my PRs in this project, please consider the following a
disclaimer: I have 0 clue what I'm doing here and if there's a better
way to do what I'm trying to do, let me know!
  • Loading branch information
mrnugget committed Sep 9, 2023
1 parent 1ebcec8 commit d86de34
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 1 deletion.
201 changes: 200 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
zig.url = "github:mitchellh/zig-overlay";
zls-master.url = "github:zigtools/zls/master";

# We want to stay as up to date as possible but need to be careful
# that the glibc versions used by our dependencies from Nix are compatible
Expand All @@ -27,6 +28,9 @@

# Latest version of Tracy
tracy = inputs.nixpkgs-unstable.legacyPackages.${prev.system}.tracy;

# Latest version of ZLS
zls = inputs.zls-master.packages.${prev.system}.zls;
})
];

Expand Down
2 changes: 2 additions & 0 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
, wraptest
, zig
, zip
, zls
, llvmPackages_latest

, bzip2
Expand Down Expand Up @@ -72,6 +73,7 @@ in mkShell rec {
scdoc
zig
zip
zls

# For web and wasm stuff
nodejs
Expand Down

0 comments on commit d86de34

Please sign in to comment.