2017-10-10 10:18:33 +01:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
2017-09-05 01:12:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "netalyzr-${version}";
|
|
|
|
version = "57861";
|
|
|
|
|
|
|
|
# unfortunately there is not a version specific download URL
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://netalyzr.icsi.berkeley.edu/NetalyzrCLI.jar";
|
|
|
|
sha256 = "0fa3gvgp05p1nf1d711052wgvnp0xnvhj2h2bwk1mh1ih8qn50xb";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
2017-10-10 10:18:33 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2017-09-05 01:12:33 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,share/netalyzr}
|
|
|
|
install -m644 $src $out/share/netalyzr/NetalyzrCLI.jar
|
2017-10-10 10:18:33 +01:00
|
|
|
makeWrapper ${stdenv.lib.getBin jre}/bin/java $out/bin/netalyzr \
|
|
|
|
--add-flags "-jar $out/share/netalyzr/NetalyzrCLI.jar"
|
2017-09-05 01:12:33 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Network debugging and analysis tool";
|
|
|
|
homepage = http://netalyzr.icsi.berkeley.edu;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|