Initial commit
This commit is contained in:
37
flake.nix
Normal file
37
flake.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
description = "Tasksquire";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
# zig-overlay.url = "github:mitchellh/zig-overlay";
|
||||
# Keep in sync with zigVersion below.
|
||||
# zls-overlay.url = "github:zigtools/zls/0.14.0";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils } @inputs :
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
buildDeps = with pkgs; [
|
||||
zig
|
||||
];
|
||||
|
||||
devDeps = with pkgs; buildDeps ++ [
|
||||
zls
|
||||
alejandra
|
||||
vscode-extensions.vadimcn.vscode-lldb.adapter
|
||||
];
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = devDeps;
|
||||
};
|
||||
|
||||
formatter = pkgs.alejandra;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user