liboping: modernize
This commit is contained in:
committed by
Bjørn Forsman
parent
42222b8d13
commit
8da73043f9
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user