jdepend: 2.9.0 -> 2.9.1, fix build

This commit is contained in:
Robin Gloster 2017-03-20 21:29:47 +01:00
parent 72a5cf11cc
commit 1c3308e9c1
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -1,24 +1,34 @@
{stdenv, fetchurl, unzip}:
{ stdenv, fetchFromGitHub, ant, jdk }:
stdenv.mkDerivation {
name = "jdepend-2.9";
buildInputs = [unzip] ;
stdenv.mkDerivation rec {
name = "jdepend-${version}";
version = "2.9.1";
src = fetchurl {
url = http://www.clarkware.com/software/jdepend-2.9.zip ;
sha256 = "1915fk9w9mjv9i6hlkn2grv2kjqcgn4xa8278v66f1ix5wpfcb90";
src = fetchFromGitHub {
owner = "clarkware";
repo = "jdepend";
rev = version;
sha256 = "1sxkgj4k4dhg8vb772pvisyzb8x0gwvlfqqir30ma4zvz3rfz60p";
};
nativeBuildInputs = [ ant jdk ];
buildPhase = "ant jar";
installPhase = ''
mkdir -p $out
cp -R * $out
mkdir -p $out/bin $out/share
install dist/${name}.jar $out/share
cat > "$out/bin/jdepend" <<EOF
#!${stdenv.shell}
exec ${jdk.jre}/bin/java -classpath "$out/share/*" "\$@"
EOF
chmod a+x $out/bin/jdepend
'';
meta = {
meta = with stdenv.lib; {
description = "Traverses Java class file directories and generates design quality metrics for each Java package";
homepage = http://www.clarkware.com/software/JDepend.html ;
homepage = http://www.clarkware.com/software/JDepend.html;
license = licenses.bsd3;
platforms = platforms.linux;
};
}