File tree 2 files changed +36
-0
lines changed
tools/networking/netalyzr
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ { stdenv , fetchurl , jre } :
2
+
3
+ stdenv . mkDerivation rec {
4
+ name = "netalyzr-${ version } " ;
5
+ version = "57861" ;
6
+
7
+ # unfortunately there is not a version specific download URL
8
+ src = fetchurl {
9
+ url = "http://netalyzr.icsi.berkeley.edu/NetalyzrCLI.jar" ;
10
+ sha256 = "0fa3gvgp05p1nf1d711052wgvnp0xnvhj2h2bwk1mh1ih8qn50xb" ;
11
+ } ;
12
+
13
+ phases = [ "installPhase" ] ;
14
+
15
+ installPhase = ''
16
+ mkdir -p $out/{bin,share/netalyzr}
17
+ install -m644 $src $out/share/netalyzr/NetalyzrCLI.jar
18
+ cat <<_EOF >> $out/bin/netalyzr
19
+ #!${ stdenv . shell }
20
+
21
+ set -euo pipefail
22
+
23
+ exec ${ stdenv . lib . getBin jre } /bin/java -jar $out/share/netalyzr/NetalyzrCLI.jar "\$@"
24
+ _EOF
25
+ chmod 755 $out/bin/netalyzr
26
+ '' ;
27
+
28
+ meta = with stdenv . lib ; {
29
+ description = "Network debugging and analysis tool" ;
30
+ homepage = http://netalyzr.icsi.berkeley.edu ;
31
+ maintainers = with maintainers ; [ peterhoeg ] ;
32
+ platforms = platforms . all ;
33
+ } ;
34
+ }
Original file line number Diff line number Diff line change @@ -4460,6 +4460,8 @@ with pkgs;
4460
4460
w3m = w3m-batch;
4461
4461
};
4462
4462
4463
+ netalyzr = callPackage ../tools/networking/netalyzr { };
4464
+
4463
4465
swaks = callPackage ../tools/networking/swaks { };
4464
4466
4465
4467
swiften = callPackage ../development/libraries/swiften { };
You can’t perform that action at this time.
0 commit comments