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