1 { lib, stdenv, fetchFromGitHub, ant, jdk, runtimeShell }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1lxf3j9vflky7a2py3i59q7cwd1zvjv2b88l3za39vc90s04dz6k";
14 nativeBuildInputs = [ ant jdk ];
15 buildPhase = "ant jar";
18 mkdir -p $out/bin $out/share
19 install dist/${pname}-${version}.jar $out/share
21 cat > "$out/bin/jdepend" <<EOF
23 exec ${jdk.jre}/bin/java -classpath "$out/share/*" "\$@"
25 chmod a+x $out/bin/jdepend
29 description = "Traverses Java class file directories and generates design quality metrics for each Java package";
30 homepage = "http://www.clarkware.com/software/JDepend.html";
31 license = licenses.bsd3;
32 platforms = platforms.linux;
33 maintainers = with maintainers; [ pSub ];