zig-datetime/flake.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

2023-10-14 12:39:16 -05:00
{
2024-03-13 15:47:56 -05:00
description = "zig-datetime";
2023-10-14 12:39:16 -05:00
inputs = {
nixpkgs = {
url = "nixpkgs/nixos-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
make-shell = {
url = "github:ursi/nix-make-shell";
};
2024-03-13 15:47:56 -05:00
zig = {
url = "github:mitchellh/zig-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
zls = {
url = "github:zigtools/zls";
inputs.nixpkgs.follows = "nixpkgs";
inputs.zig-overlay.follows = "zig";
inputs.flake-utils.follows = "flake-utils";
};
2023-10-14 12:39:16 -05:00
};
2024-03-13 15:47:56 -05:00
outputs = {
self,
nixpkgs,
flake-utils,
zig,
zls,
...
} @ inputs:
2023-10-14 21:05:51 -05:00
flake-utils.lib.eachDefaultSystem (
2024-03-13 15:47:56 -05:00
system: let
2023-10-14 12:39:16 -05:00
pkgs = import nixpkgs {
inherit system;
};
2024-03-13 15:47:56 -05:00
in {
devShells.default = let
project = "zig-datetime";
make-shell = import inputs.make-shell {
inherit system;
pkgs = pkgs;
};
in
2023-10-14 12:39:16 -05:00
make-shell {
packages = [
2023-10-14 21:05:51 -05:00
pkgs.zon2nix
2024-03-13 15:47:56 -05:00
zig.packages.${pkgs.system}.master
zls.packages.${pkgs.system}.zls
2023-10-14 12:39:16 -05:00
];
env = {
2024-03-13 15:47:56 -05:00
name = project;
2023-10-14 12:39:16 -05:00
};
};
}
);
}