forked from mirrors/nixpkgs
checkstyle: 8.10.1 -> 8.11
fetch artifact from github as it is no longer available on sourceforge
This commit is contained in:
parent
92a6feca0a
commit
14a9ca27e6
|
@ -1,17 +1,19 @@
|
||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "8.10.1";
|
version = "8.11";
|
||||||
name = "checkstyle-${version}";
|
name = "checkstyle-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/checkstyle/${name}-bin.tar.gz";
|
url = "https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${version}/checkstyle-${version}-all.jar";
|
||||||
sha256 = "18i1a6v9dg08in68g584y7bhf76g59pp8lyixqc3v6wgj3ksv8q9";
|
sha256 = "13x4m4rn7rix64baclcm2jqbizkj38njif2ba0ycmvyjm62smfwv";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/checkstyle
|
mkdir -p $out/checkstyle
|
||||||
cp -R * $out/checkstyle
|
cp $src $out/checkstyle/checkstyle-all.jar
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue