1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-30 06:01:03 +01:00
home-manager/tests/modules/programs/gradle/init-scripts-settings.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

26 lines
783 B
Nix

{ pkgs, ... }:
{
programs.gradle = {
enable = true;
initScripts = {
"inline-init-script.gradle".text = ''
println 'inline-init-script'
'';
"external-init-script.gradle".source = ./external-init-script.gradle;
};
};
programs.java.package = pkgs.runCommandLocal "java" { home = ""; } "mkdir $out";
nmt.script = ''
assertFileExists home-files/.gradle/init.d/inline-init-script.gradle
assertFileContent home-files/.gradle/init.d/inline-init-script.gradle ${pkgs.writeText "gradle.expected" ''
println 'inline-init-script'
''}
assertFileExists home-files/.gradle/init.d/external-init-script.gradle
assertFileContent home-files/.gradle/init.d/external-init-script.gradle ${./external-init-script.gradle}
'';
}