jdepend: 2.9.0 -> 2.9.1, fix build
This commit is contained in:
parent
72a5cf11cc
commit
1c3308e9c1
@ -1,24 +1,34 @@
|
|||||||
{stdenv, fetchurl, unzip}:
|
{ stdenv, fetchFromGitHub, ant, jdk }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "jdepend-2.9";
|
name = "jdepend-${version}";
|
||||||
buildInputs = [unzip] ;
|
version = "2.9.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = http://www.clarkware.com/software/jdepend-2.9.zip ;
|
owner = "clarkware";
|
||||||
sha256 = "1915fk9w9mjv9i6hlkn2grv2kjqcgn4xa8278v66f1ix5wpfcb90";
|
repo = "jdepend";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1sxkgj4k4dhg8vb772pvisyzb8x0gwvlfqqir30ma4zvz3rfz60p";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ ant jdk ];
|
||||||
|
buildPhase = "ant jar";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out/bin $out/share
|
||||||
cp -R * $out
|
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";
|
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user