mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 00:25:24 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
26 lines
531 B
Nix
26 lines
531 B
Nix
{stdenv, fetchurl, unzip}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pmd-${version}";
|
|
version = "5.2.3";
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip";
|
|
sha256 = "03frkyiii7304qrcypdqcxqxjf5n3p59zjib0r802mbbx1nzcisn";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -R * $out
|
|
'';
|
|
|
|
meta = {
|
|
description = "Scans Java source code and looks for potential problems";
|
|
homepage = http://pmd.sourceforge.net/;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|
|
|