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
This commit is contained in:
Bjørn Forsman 2023-11-25 22:10:24 +01:00
parent 4636b9f219
commit eb602b02de

View File

@ -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 ];
};