Skip to content

Commit

Permalink
Update flake.nix for Zig 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
beho committed Apr 23, 2024
1 parent 2a0cc18 commit e6510bb
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 3 deletions.
161 changes: 160 additions & 1 deletion flake.lock

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

7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
nixpkgs.url = "github:nixos/nixpkgs/ff1a94e523ae9fb272e0581f068baee5d1068476";
flake-utils.url = "github:numtide/flake-utils";
zig.url = "github:mitchellh/zig-overlay";
# target ZLS master until ZLS release targeting Zig 0.12 is available
zls.url = "github:zigtools/zls";
};

outputs = {
Expand All @@ -19,6 +21,7 @@
overlays = [
(final: prev: {
zigpkgs = inputs.zig.packages.${prev.system};
zlspkgs = inputs.zls.packages.${prev.system};
})
];
# Our supported systems are the same supported systems as the Zig binaries
Expand All @@ -30,10 +33,10 @@
in rec {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.zigpkgs."0.11.0"
pkgs.zigpkgs."0.12.0"
];
buildInputs = [
pkgs.zls
pkgs.zlspkgs.zls
];
};

Expand Down

0 comments on commit e6510bb

Please sign in to comment.