Skip to content

Commit

Permalink
update flake to working 0.12 and add zls
Browse files Browse the repository at this point in the history
  • Loading branch information
vesim987 committed Apr 26, 2024
1 parent 540a525 commit c1d82f7
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 13 deletions.
5 changes: 3 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# use_nix
use_flake
if has nix; then
use flake
fi
179 changes: 169 additions & 10 deletions flake.lock

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

7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# required for latest zig
zig.url = "github:mitchellh/zig-overlay";

zls.url = "github:zigtools/zls";


# Used for shell.nix
flake-compat = {
url = github:edolstra/flake-compat;
Expand All @@ -26,6 +29,7 @@
# Other overlays
(final: prev: {
zigpkgs = inputs.zig.packages.${prev.system};
zls = inputs.zls.packages.${prev.system}.zls;
})
];

Expand Down Expand Up @@ -84,7 +88,8 @@
rec {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.zigpkgs."0.11.0"
pkgs.zigpkgs."0.12.0"
pkgs.zls
(python3.withPackages (ps: [
ps.dataclasses_json
ps.marshmallow
Expand Down

0 comments on commit c1d82f7

Please sign in to comment.