Merge pull request #45254 from r-ryantm/auto-update/checkstyle
checkstyle: 8.11 -> 8.12
This commit is contained in:
commit
a1ffd137f5
|
@ -1,19 +1,24 @@
|
||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, makeWrapper, jre }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "8.11";
|
version = "8.12";
|
||||||
name = "checkstyle-${version}";
|
name = "checkstyle-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${version}/checkstyle-${version}-all.jar";
|
url = "https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${version}/checkstyle-${version}-all.jar";
|
||||||
sha256 = "13x4m4rn7rix64baclcm2jqbizkj38njif2ba0ycmvyjm62smfwv";
|
sha256 = "000048flqhkwnjn37bh07wgn6q4m12s3h3p9piqgvxswrjc95x3y";
|
||||||
};
|
};
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
nativeBuildInputs = [ makeWrapper jre ];
|
||||||
|
|
||||||
|
unpackPhase = ":";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/checkstyle
|
runHook preInstall
|
||||||
cp $src $out/checkstyle/checkstyle-all.jar
|
install -D $src $out/checkstyle/checkstyle-all.jar
|
||||||
|
makeWrapper ${jre}/bin/java $out/bin/checkstyle \
|
||||||
|
--add-flags "-jar $out/checkstyle/checkstyle-all.jar"
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue