1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/analysis/jdepend/default.nix

36 lines
944 B
Nix
Raw Normal View History

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