-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
32 lines (31 loc) · 783 Bytes
/
Copy pathflake.nix
File metadata and controls
32 lines (31 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
inputs = rec {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
zig-overlay.url = "github:mitchellh/zig-overlay";
};
outputs = inputs @ {
self,
nixpkgs,
...
}:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
zig = inputs.zig-overlay.packages.x86_64-linux.default;
in
{
devShells.x86_64-linux.default = pkgs.mkShell {
packages = with pkgs; [
zls
zig
# Also need curl for the AoC input fetching script
curl
];
shellHook = ''
echo "Using Zig version: $(zig version)"
echo "Using ZLS version: $(zls --version || echo 'ZLS not set up correctly')"
echo "Using curl version: $(curl --version | head -n 1 | awk '{print $2}')"
code .
'';
};
};
}