nixpkgs/pkgs/applications/networking/sniffers/kismet/default.nix

29 lines
778 B
Nix
Raw Normal View History

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