Skip to content

Commit 8da7304

Browse files
FliegendeWurstbjornfor
authored andcommitted
liboping: modernize
1 parent 42222b8 commit 8da7304

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pkgs/by-name/li/liboping/package.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
lib,
99
}:
1010

11-
stdenv.mkDerivation rec {
11+
stdenv.mkDerivation (finalAttrs: {
1212
pname = "liboping";
1313
version = "1.10.0";
1414

1515
src = fetchurl {
16-
url = "https://noping.cc/files/${pname}-${version}.tar.bz2";
17-
sha256 = "1n2wkmvw6n80ybdwkjq8ka43z2x8mvxq49byv61b52iyz69slf7b";
16+
url = "https://noping.cc/files/liboping-${finalAttrs.version}.tar.bz2";
17+
hash = "sha256-6ziqk/k+irKC2X4lgvuuqIs/iJoIy8nb8gBZw3edXNg=";
1818
};
1919

2020
patches = [
@@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
5252
"LD=${stdenv.cc.targetPrefix}cc"
5353
];
5454

55-
meta = with lib; {
55+
meta = {
5656
description = "C library to generate ICMP echo requests (a.k.a. ping packets)";
5757
longDescription = ''
5858
liboping is a C library to generate ICMP echo requests, better known as
@@ -61,9 +61,9 @@ stdenv.mkDerivation rec {
6161
Included is a sample application, called oping, which demonstrates the
6262
library's abilities.
6363
'';
64-
homepage = "http://noping.cc/";
65-
license = licenses.lgpl21;
66-
platforms = platforms.unix;
67-
maintainers = [ maintainers.bjornfor ];
64+
homepage = "https://noping.cc/";
65+
license = lib.licenses.lgpl21;
66+
platforms = lib.platforms.unix;
67+
maintainers = [ lib.maintainers.bjornfor ];
6868
};
69-
}
69+
})

0 commit comments

Comments
 (0)