checkstyle: use finalAttrs instead of rec (#515953)

This commit is contained in:
Yohann Boniface
2026-05-02 20:42:18 +00:00
committed by GitHub
+5 -5
View File
@@ -7,14 +7,14 @@
nix-update-script,
}:
maven.buildMavenPackage rec {
maven.buildMavenPackage (finalAttrs: {
version = "13.2.0";
pname = "checkstyle";
src = fetchFromGitHub {
owner = "checkstyle";
repo = "checkstyle";
tag = "checkstyle-${version}";
tag = "checkstyle-${finalAttrs.version}";
hash = "sha256-f9jJK9zp7sm8VEn30qQA73+ynARJWY3BxbSMEppEDlk=";
};
@@ -31,7 +31,7 @@ maven.buildMavenPackage rec {
runHook preInstall
mkdir -p $out/bin $out/share/checkstyle
install -Dm644 target/checkstyle-${version}-all.jar $out/share/checkstyle/checkstyle-all.jar
install -Dm644 target/checkstyle-${finalAttrs.version}-all.jar $out/share/checkstyle/checkstyle-all.jar
makeWrapper ${jre}/bin/java $out/bin/checkstyle \
--add-flags "-jar $out/share/checkstyle/checkstyle-all.jar"
@@ -50,7 +50,7 @@ maven.buildMavenPackage rec {
Conventions, but is highly configurable.
'';
homepage = "https://checkstyle.org/";
changelog = "https://checkstyle.org/releasenotes.html#Release_${version}";
changelog = "https://checkstyle.org/releasenotes.html#Release_${finalAttrs.version}";
sourceProvenance = with lib.sourceTypes; [
fromSource
binaryBytecode
@@ -62,4 +62,4 @@ maven.buildMavenPackage rec {
];
inherit (jre.meta) platforms;
};
}
})