feat(scala): Add flake

This commit is contained in:
Tibo De Peuter 2025-09-22 07:57:16 +02:00
parent fe81f7cd15
commit d0c6ffd1be
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 97 additions and 0 deletions

33
scala/flake.nix Normal file
View file

@ -0,0 +1,33 @@
{
description = "Scala shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
jdk
scala-next
scala-cli
# You might want to use your own IDE.
(jetbrains.plugins.addPlugins jetbrains.idea-ultimate [ "github-copilot" ])
];
};
}
);
}