summary refs log tree commit diff
path: root/pkgs/tools/networking/socat/2.x.nix
blob: a1cea0348367974678e78464374bdc3c0d40a46f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, openssl }:

stdenv.mkDerivation rec {
  name = "socat-2.0.0-b8";

  src = fetchurl {
    url = "http://www.dest-unreach.org/socat/download/${name}.tar.bz2";
    sha256 = "1slkv1hhcp9a6c88h6yl5cs0z9g60fp2ja6865s6kywqp6fmf168";
  };

  buildInputs = [ openssl ];

  configureFlags = stdenv.lib.optionalString stdenv.isDarwin "--disable-ip6";

  patches = stdenv.lib.singleton ./libressl-fixes.patch ;

  meta = with stdenv.lib; {
    description = "A utility for bidirectional data transfer between two independent data channels";
    homepage = http://www.dest-unreach.org/socat/;
    repositories.git = git://repo.or.cz/socat.git;
    platforms = platforms.unix;
    license = licenses.gpl2;
    maintainers = [ maintainers.eelco ];
  };
}