mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, libpcap, libnet, zlib, curl, pcre
|
|
, openssl, ncurses, glib, gtk3, atk, pango, flex, bison, geoip
|
|
, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ettercap";
|
|
version = "0.8.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ettercap";
|
|
repo = "ettercap";
|
|
rev = "v${version}";
|
|
sha256 = "0m40bmbrv9a8qlg54z3b5f8r541gl9vah5hm0bbqcgyyljpg39bz";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ cmake flex bison pkgconfig ];
|
|
buildInputs = [
|
|
libpcap libnet zlib curl pcre openssl ncurses
|
|
glib gtk3 atk pango geoip
|
|
];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace CMakeLists.txt --replace /etc \$\{INSTALL_PREFIX\}/etc \
|
|
--replace /usr \$\{INSTALL_PREFIX\}
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-DBUNDLED_LIBS=Off"
|
|
"-DGTK3_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Comprehensive suite for man in the middle attacks";
|
|
homepage = http://ettercap.github.io/ettercap/;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|