summary refs log blame commit diff
path: root/pkgs/development/tools/analysis/checkstyle/default.nix
blob: 56797d9c7028d6051e6f101b37159f5806e4489a (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
 


                                 

                  

                                                                          


                   
                            



                           





                                                                               
                                                  
                                         

    
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "5.7";
  name = "checkstyle-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/checkstyle/${version}/${name}-bin.tar.gz";
    sha256 = "0kzj507ylynq6p7v097bjzsckkjny5i2fxwxyrlwi5samhi2m06x";
  };

  installPhase = ''
    mkdir -p $out/checkstyle
    cp -R * $out/checkstyle
  '';

  meta = {
    description = "Checks Java source against a coding standard";
    longDescription = ''
      checkstyle is a development tool to help programmers write Java code that
      adheres to a coding standard. By default it supports the Sun Code
      Conventions, but is highly configurable.
    '';
    homepage = http://checkstyle.sourceforge.net/;
    license = stdenv.lib.licenses.lgpl21;
  };
}