Merge pull request #45254 from r-ryantm/auto-update/checkstyle

checkstyle: 8.11 -> 8.12
This commit is contained in:
Jörg Thalheim 2018-08-20 14:42:54 +01:00 committed by GitHub
commit a1ffd137f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 6 deletions

View File

@ -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; {