Skip to content

Commit 2961e00

Browse files
authored
kismet: 2023-07-R1 -> 2023-07-R2 (NixOS#395367)
2 parents f53f5f7 + 5e872fd commit 2961e00

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

pkgs/by-name/ki/kismet/package.nix

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
autoreconfHook,
55
binutils,
66
elfutils,
7-
fetchurl,
7+
fetchFromGitHub,
88
glib,
99
libcap,
1010
libmicrohttpd,
@@ -14,7 +14,8 @@
1414
libwebsockets,
1515
lm_sensors,
1616
networkmanager,
17-
pcre,
17+
nix-update-script,
18+
pcre2,
1819
pkg-config,
1920
openssl,
2021
protobuf,
@@ -27,20 +28,22 @@
2728
zlib,
2829
}:
2930

30-
stdenv.mkDerivation rec {
31+
stdenv.mkDerivation (finalPackage: {
3132
pname = "kismet";
32-
version = "2023-07-R1";
33+
version = "2023-07-R2";
3334

34-
src = fetchurl {
35-
url = "https://www.kismetwireless.net/code/${pname}-${version}.tar.xz";
36-
hash = "sha256-8IVI4mymX6HlZ7Heu+ocpNDnIGvduWpPY5yQFxhz6Pc=";
35+
src = fetchFromGitHub {
36+
owner = "kismetwireless";
37+
repo = "kismet";
38+
tag = "kismet-${finalPackage.version}";
39+
hash = "sha256-QwTjjZHnrlATFvHK9PLDTt76UjfZdzCmV6uXVgIMIYg=";
3740
};
3841

3942
postPatch = ''
4043
substituteInPlace Makefile.in \
41-
--replace "-m 4550" ""
44+
--replace-fail "-m 4550" ""
4245
substituteInPlace configure.ac \
43-
--replace "pkg-config" "$PKG_CONFIG"
46+
--replace-fail "pkg-config" "$PKG_CONFIG"
4447
'';
4548

4649
postConfigure = ''
@@ -81,7 +84,7 @@ stdenv.mkDerivation rec {
8184
openssl
8285
libusb1
8386
libwebsockets
84-
pcre
87+
pcre2
8588
protobuf
8689
protobufc
8790
sqlite
@@ -111,10 +114,20 @@ stdenv.mkDerivation rec {
111114

112115
enableParallelBuilding = true;
113116

114-
meta = with lib; {
117+
passthru = {
118+
updateScript = nix-update-script {
119+
extraArgs = [
120+
"--version-regex"
121+
"^kismet-(\\d+-\\d+-.+)$"
122+
];
123+
};
124+
};
125+
126+
meta = {
115127
description = "Wireless network sniffer";
116128
homepage = "https://www.kismetwireless.net/";
117-
license = licenses.gpl3Plus;
118-
platforms = platforms.linux;
129+
license = lib.licenses.gpl3Plus;
130+
platforms = lib.platforms.linux;
131+
maintainers = with lib.maintainers; [ numinit ];
119132
};
120-
}
133+
})

0 commit comments

Comments
 (0)