diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-09-05 08:12:33 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-09-05 08:12:40 +0800 |
commit | 62ff6cb69c7ef076e4d797c429aaaed9bbaae433 (patch) | |
tree | 052f3c7d0e1d2a666bdb07088a0b46ae5457f454 /pkgs/tools | |
parent | 65f6e6ccb60d2b6429039c4bf21411731500d162 (diff) |
netalyzr: init at 57861
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/netalyzr/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/networking/netalyzr/default.nix b/pkgs/tools/networking/netalyzr/default.nix new file mode 100644 index 0000000000000..abc6b785c9cb4 --- /dev/null +++ b/pkgs/tools/networking/netalyzr/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, jre }: + +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" ]; + + installPhase = '' + mkdir -p $out/{bin,share/netalyzr} + install -m644 $src $out/share/netalyzr/NetalyzrCLI.jar + cat <<_EOF >> $out/bin/netalyzr + #!${stdenv.shell} + + set -euo pipefail + + exec ${stdenv.lib.getBin jre}/bin/java -jar $out/share/netalyzr/NetalyzrCLI.jar "\$@" + _EOF + chmod 755 $out/bin/netalyzr + ''; + + meta = with stdenv.lib; { + description = "Network debugging and analysis tool"; + homepage = http://netalyzr.icsi.berkeley.edu; + maintainers = with maintainers; [ peterhoeg ]; + platforms = platforms.all; + }; +} |