{stdenv, fetchurl, unzip}: stdenv.mkDerivation rec { name = "pmd-${version}"; version = "6.0.1"; buildInputs = [ unzip ]; src = fetchurl { url = "mirror://sourceforge/pmd/pmd-bin-${version}.zip"; sha256 = "13wmmy345p8bzvxdb8ldpkv85m3m8x9qs5f0jjhn0gkn65a988iq"; }; 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; }; }