about summary refs log tree commit diff
path: root/pkgs/tools/networking/ngrep
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2023-11-25 22:10:24 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-11-25 22:10:24 +0100
commiteb602b02dedd22b29c08808b405c7f158d0cb8dc (patch)
tree182aac43e8dfed0b9b62eafb6b5a1d1c04dac747 /pkgs/tools/networking/ngrep
parent4636b9f219d490dc0961c3b32601a630bcc667c3 (diff)
ngrep: improve meta.license
Replace stringy license with attrset. Also update the comments, as
upstream now document the license in README.md and LICENSE.

Ref https://github.com/NixOS/nixpkgs/issues/269788
Diffstat (limited to 'pkgs/tools/networking/ngrep')
-rw-r--r--pkgs/tools/networking/ngrep/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/tools/networking/ngrep/default.nix b/pkgs/tools/networking/ngrep/default.nix
index bee8678d1c93e..c44f6e1eb8328 100644
--- a/pkgs/tools/networking/ngrep/default.nix
+++ b/pkgs/tools/networking/ngrep/default.nix
@@ -44,10 +44,12 @@ stdenv.mkDerivation rec {
       more common packet sniffing tools, such as tcpdump and snoop.
     '';
     homepage = "https://github.com/jpr5/ngrep/";
-    # <ngrep>/doc/README.txt says that ngrep itself is licensed under a
-    # 'BSD-like' license but that the 'regex' library (in the ngrep tarball) is
-    # GPLv2.
-    license = "ngrep";  # Some custom BSD-style, see LICENSE.txt
+    license = {
+      shortName = "ngrep";  # BSD-style, see README.md and LICENSE
+      url = "https://github.com/jpr5/ngrep/blob/master/LICENSE";
+      free = true;
+      redistributable = true;
+    };
     platforms = with platforms; linux ++ darwin;
     maintainers = [ maintainers.bjornfor ];
   };