2018-08-08 22:38:23 +01:00
|
|
|
{ stdenv, fetchurl, openssl, readline, which, nettools }:
|
2009-11-18 09:39:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-16 12:28:34 +01:00
|
|
|
name = "socat-1.7.3.3";
|
2013-04-12 14:01:01 +01:00
|
|
|
|
2009-11-18 09:39:59 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.dest-unreach.org/socat/download/${name}.tar.bz2";
|
2019-04-16 12:28:34 +01:00
|
|
|
sha256 = "0jnhjijyq74g3wa4ph0am83z6vq7qna7ac0xqjma8s4197z3zmhd";
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
|
2019-04-26 11:03:28 +01:00
|
|
|
patches = stdenv.lib.optional stdenv.isDarwin ./speed-type-fix.patch;
|
|
|
|
|
2018-08-08 22:38:23 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs test.sh
|
|
|
|
substituteInPlace test.sh \
|
|
|
|
--replace /bin/rm rm \
|
|
|
|
--replace /sbin/ifconfig ifconfig
|
|
|
|
'';
|
|
|
|
|
2016-06-13 12:08:18 +01:00
|
|
|
buildInputs = [ openssl readline ];
|
2013-04-12 14:01:01 +01:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningEnable = [ "pie" ];
|
2016-02-26 16:45:49 +00:00
|
|
|
|
2018-08-08 22:38:23 +01:00
|
|
|
checkInputs = [ which nettools ];
|
|
|
|
doCheck = false; # fails a bunch, hangs
|
|
|
|
|
2009-11-18 09:39:59 +00:00
|
|
|
meta = {
|
2013-04-12 14:01:01 +01:00
|
|
|
description = "A utility for bidirectional data transfer between two independent data channels";
|
|
|
|
homepage = http://www.dest-unreach.org/socat/;
|
2014-03-13 07:09:19 +00:00
|
|
|
repositories.git = git://repo.or.cz/socat.git;
|
2014-04-12 17:37:45 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-04-12 14:01:01 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2014-09-13 12:51:39 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
}
|