2015-07-23 01:17:12 +02:00
|
|
|
{stdenv, fetchFromGitHub, pkgconfig, ncurses, libnl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "horst-${version}";
|
2017-03-02 02:16:03 +01:00
|
|
|
version = "5.0";
|
2015-07-23 01:17:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "br101";
|
|
|
|
repo = "horst";
|
2017-03-02 02:16:03 +01:00
|
|
|
rev = "version-${version}";
|
|
|
|
sha256 = "0m7gc6dj816z8wyq5bdkqj7fw6rmxaah84s34ncsaispz2llva1x";
|
2015-07-23 01:17:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ncurses libnl ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv horst $out/bin
|
|
|
|
|
|
|
|
mkdir -p $out/man/man1
|
|
|
|
cp horst.1 $out/man/man1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Small and lightweight IEEE802.11 wireless LAN analyzer with a text interface";
|
|
|
|
homepage = http://br1.einfach.org/tech/horst/;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|