Skip to content

Commit

Permalink
Change devshell to use scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Feb 23, 2024
1 parent ec19b90 commit ac41f78
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,15 @@
{
overlays.default = final: prev: rec {
jre = prev.jdk21;
sbt = prev.sbt.override {
inherit jre;
};
scala_3 = prev.scala_3.override {
inherit jre;
};
metals = prev.metals.override {
inherit jre;
};
sbt = prev.sbt.override { inherit jre; };
scala_2_12 = prev.scala_2_12.override { inherit jre; };
metals = prev.metals.override { inherit jre; };
};
} // flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [ jdk21 scala_3 sbt metals ];
packages = with pkgs; [ jdk21 scala_2_12 sbt metals ];
};
});
}

0 comments on commit ac41f78

Please sign in to comment.