mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-11 15:30:38 -05:00
Fix dependency resolution for plugins in buildSrc
This commit is contained in:
37
default.nix
37
default.nix
@@ -5,15 +5,34 @@ with pkgs;
|
||||
let
|
||||
buildGradle = pkgs.callPackage ./gradle-env.nix {};
|
||||
|
||||
in buildGradle {
|
||||
envSpec = ./gradle-env.json;
|
||||
gradle2nix = buildGradle {
|
||||
envSpec = ./gradle-env.json;
|
||||
|
||||
src = ./.;
|
||||
src = lib.cleanSourceWith {
|
||||
filter = lib.cleanSourceFilter;
|
||||
src = lib.cleanSourceWith {
|
||||
filter = path: type: let baseName = baseNameOf path; in !(
|
||||
(type == "directory" && (
|
||||
baseName == "build" ||
|
||||
baseName == ".idea" ||
|
||||
baseName == ".gradle"
|
||||
)) ||
|
||||
(lib.hasSuffix ".iml" baseName)
|
||||
);
|
||||
src = ./.;
|
||||
};
|
||||
};
|
||||
|
||||
gradleFlags = [ "installDist" ];
|
||||
gradleFlags = [ "installDist" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r app/build/install/gradle2nix/* $out/
|
||||
'';
|
||||
}
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r app/build/install/gradle2nix/* $out/
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
plugin = "${gradle2nix}/share/plugin.jar";
|
||||
};
|
||||
};
|
||||
|
||||
in gradle2nix
|
||||
|
||||
Reference in New Issue
Block a user