nixpkgs-suyu/pkgs/tools/networking/socat/default.nix

36 lines
1,008 B
Nix
Raw Normal View History

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