Files
crafting-interpreters/flake.nix

32 lines
615 B
Nix
Raw Permalink Normal View History

2022-08-31 21:21:03 +02:00
{
description = "Crafting Interpreters";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
gcc = pkgs.gcc;
openjdk = pkgs.openjdk;
maven = pkgs.maven;
antlr = pkgs.antlr;
2022-08-31 21:21:03 +02:00
in
{
devShell = pkgs.mkShell {
buildInputs = [
gcc
openjdk
maven
antlr
2022-08-31 21:21:03 +02:00
];
};
}
);
}