Move Gradle build logic to a setup hook

This commit is contained in:
Tad Fisher
2024-06-13 15:21:58 -07:00
parent a4ef499401
commit b32bf21a6c
26 changed files with 768 additions and 470 deletions

View File

@@ -20,15 +20,15 @@
inherit (nixpkgs) lib;
in
{
builders = rec {
buildMavenRepo = pkgs.callPackage ./maven-repo.nix { };
buildGradlePackage = pkgs.callPackage ./gradle.nix { inherit buildMavenRepo; };
default = buildGradlePackage;
builders = {
inherit (self.packages.${system}.gradle2nix) buildGradlePackage buildMavenRepo;
default = self.packages.${system}.buildGradlePackage;
};
packages = rec {
packages = {
inherit (self.packages.${system}.gradle2nix) gradleSetupHook;
gradle2nix = pkgs.callPackage ./default.nix { };
default = gradle2nix;
default = self.packages.${system}.gradle2nix;
};
apps = rec {