compilers-lab1/flake.nix

33 lines
542 B
Nix
Raw Normal View History

2025-03-20 09:58:37 +08:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{
flake-utils,
nixpkgs,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
gcc
bison
flex
clang-tools
clang
2025-03-24 18:40:16 +08:00
bear
2025-03-25 18:31:25 +08:00
zig
2025-03-20 09:58:37 +08:00
];
};
}
);
}