Skip to content

Commit

Permalink
Merge pull request #54 from nartsisss/fix/overlays
Browse files Browse the repository at this point in the history
fix: missing overlays, outdated inputs in java/kotlin
  • Loading branch information
lucperkins authored Sep 12, 2024
2 parents 30ab9d5 + 423d98b commit 16140e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions java/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; };
});
in
{
overlays.default =
final: prev: rec {
jdk = prev."jdk${toString javaVersion}";
maven = prev.maven.override { jre = jdk; };
maven = prev.maven.override { jdk_headless = jdk; };
gradle = prev.gradle.override { java = jdk; };
};

Expand Down
2 changes: 1 addition & 1 deletion kotlin/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; };
});
in
{
Expand Down

0 comments on commit 16140e8

Please sign in to comment.