about summary refs log tree commit diff
path: root/pkgs/tools/networking
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien@users.noreply.github.com>2021-01-07 21:40:32 +0000
committerGitHub <noreply@github.com>2021-01-07 21:40:32 +0000
commitd52f9846240a8853a949d0478ef975dd583fe85c (patch)
treebb767d1f6b8087001f8bdec350cf26be74daa380 /pkgs/tools/networking
parentf6f4e1f7be19dab2700385fe7b4f3d20a95a55bd (diff)
parent0f15ca239d19edbd84ae7638b8ecd7e222aae355 (diff)
downloadnixlib-d52f9846240a8853a949d0478ef975dd583fe85c.tar
nixlib-d52f9846240a8853a949d0478ef975dd583fe85c.tar.gz
nixlib-d52f9846240a8853a949d0478ef975dd583fe85c.tar.bz2
nixlib-d52f9846240a8853a949d0478ef975dd583fe85c.tar.lz
nixlib-d52f9846240a8853a949d0478ef975dd583fe85c.tar.xz
nixlib-d52f9846240a8853a949d0478ef975dd583fe85c.tar.zst
nixlib-d52f9846240a8853a949d0478ef975dd583fe85c.zip
Merge pull request #108591 from iblech/patch-24
dsniff: unbreak the build
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r--pkgs/tools/networking/dsniff/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/tools/networking/dsniff/default.nix b/pkgs/tools/networking/dsniff/default.nix
index db9c608e931b..3a8eab862cb1 100644
--- a/pkgs/tools/networking/dsniff/default.nix
+++ b/pkgs/tools/networking/dsniff/default.nix
@@ -1,6 +1,10 @@
-{ stdenv, fetchFromGitLab, autoreconfHook, libpcap, db, glib, libnet, libnids, symlinkJoin, openssl
+{ gcc9Stdenv, lib, fetchFromGitLab, autoreconfHook, libpcap, db, glib, libnet, libnids, symlinkJoin, openssl
 , rpcsvc-proto, libtirpc, libnsl
 }:
+
+# We compile with GCC 9 since GCC 10 segfaults on the code
+# (see https://bugzilla.redhat.com/show_bug.cgi?id=1862809).
+
 let
   /*
   dsniff's build system unconditionnaly wants static libraries and does not
@@ -38,7 +42,7 @@ let
     inherit (openssl) name;
     paths = with openssl.override { static = true; }; [ out dev ];
   };
-in stdenv.mkDerivation rec {
+in gcc9Stdenv.mkDerivation rec {
   pname = "dsniff";
   version = "2.4b1";
   # upstream is so old that nearly every distribution packages the beta version.
@@ -71,7 +75,7 @@ in stdenv.mkDerivation rec {
     "--with-openssl=${ssl}"
   ];
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "collection of tools for network auditing and penetration testing";
     longDescription = ''
       dsniff, filesnarf, mailsnarf, msgsnarf, urlsnarf, and webspy passively monitor a network for interesting data (passwords, e-mail, files, etc.). arpspoof, dnsspoof, and macof facilitate the interception of network traffic normally unavailable to an attacker (e.g, due to layer-2 switching). sshmitm and webmitm implement active monkey-in-the-middle attacks against redirected SSH and HTTPS sessions by exploiting weak bindings in ad-hoc PKI.