Use lib.makeScope for consistent package resolution

This commit is contained in:
Tad Fisher
2024-06-16 12:22:38 -07:00
committed by Tad Fisher
parent 6e37e6e3f9
commit 0160c945b8
7 changed files with 96 additions and 98 deletions

15
nix/default.nix Normal file
View File

@@ -0,0 +1,15 @@
{
lib,
gradle,
newScope,
}:
lib.makeScope newScope (
self: with self; {
inherit gradle;
buildGradlePackage = callPackage ./build-gradle-package.nix { };
buildMavenRepo = callPackage ./build-maven-repo.nix { };
gradleSetupHook = callPackage ./gradle-setup-hook.nix { };
gradle2nix = callPackage ./gradle2nix.nix { };
}
)