0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

liboping: modernize

This commit is contained in:
FliegendeWurst 2025-04-10 11:22:36 +02:00 committed by Bjørn Forsman
parent 42222b8d13
commit 8da73043f9

View file

@ -8,13 +8,13 @@
lib,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "liboping";
version = "1.10.0";
src = fetchurl {
url = "https://noping.cc/files/${pname}-${version}.tar.bz2";
sha256 = "1n2wkmvw6n80ybdwkjq8ka43z2x8mvxq49byv61b52iyz69slf7b";
url = "https://noping.cc/files/liboping-${finalAttrs.version}.tar.bz2";
hash = "sha256-6ziqk/k+irKC2X4lgvuuqIs/iJoIy8nb8gBZw3edXNg=";
};
patches = [
@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
"LD=${stdenv.cc.targetPrefix}cc"
];
meta = with lib; {
meta = {
description = "C library to generate ICMP echo requests (a.k.a. ping packets)";
longDescription = ''
liboping is a C library to generate ICMP echo requests, better known as
@ -61,9 +61,9 @@ stdenv.mkDerivation rec {
Included is a sample application, called oping, which demonstrates the
library's abilities.
'';
homepage = "http://noping.cc/";
license = licenses.lgpl21;
platforms = platforms.unix;
maintainers = [ maintainers.bjornfor ];
homepage = "https://noping.cc/";
license = lib.licenses.lgpl21;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.bjornfor ];
};
}
})