2013-09-07 14:46:53 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libpcap, ncurses, expat, pcre, libnl }:
|
2009-02-01 22:21:27 +01:00
|
|
|
|
2013-09-07 14:46:53 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "kismet";
|
2017-09-05 14:01:20 +02:00
|
|
|
version = "2016-07-R1";
|
2009-02-01 22:21:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.kismetwireless.net/code/${pname}-${version}.tar.xz";
|
2017-09-05 14:01:20 +02:00
|
|
|
sha256 = "0dz28y4ay4lskhl0lawqy2dkcrhgfkbg06v22qxzzw8i6caizcmx";
|
2009-02-01 22:21:27 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libpcap ncurses expat pcre libnl ];
|
2013-09-07 14:46:53 +02:00
|
|
|
postConfigure = ''
|
|
|
|
sed -e 's/-o $(INSTUSR)//' \
|
|
|
|
-e 's/-g $(INSTGRP)//' \
|
|
|
|
-e 's/-g $(MANGRP)//' \
|
|
|
|
-e 's/-g $(SUIDGROUP)//' \
|
|
|
|
-i Makefile
|
|
|
|
'';
|
2009-02-01 22:21:27 +01:00
|
|
|
|
2017-09-05 14:01:20 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-02-01 22:21:27 +01:00
|
|
|
description = "Wireless network sniffer";
|
2017-09-05 14:01:20 +02:00
|
|
|
homepage = https://www.kismetwireless.net/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2009-02-01 22:21:27 +01:00
|
|
|
};
|
|
|
|
}
|