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

34 lines
939 B
Nix
Raw Normal View History

2018-08-08 21:38:23 +00:00
{ stdenv, fetchurl, openssl, readline, which, nettools }:
stdenv.mkDerivation rec {
2020-01-30 13:05:03 +00:00
name = "socat-1.7.3.4";
2013-04-12 13:01:01 +00:00
src = fetchurl {
url = "http://www.dest-unreach.org/socat/download/${name}.tar.bz2";
2020-01-30 13:05:03 +00:00
sha256 = "1z7xgnwiqpcv1j6aghhj9nqbx7cg3gpc4n9j7vi9hm7nhv5788wp";
};
2018-08-08 21:38:23 +00:00
postPatch = ''
patchShebangs test.sh
substituteInPlace test.sh \
--replace /bin/rm rm \
--replace /sbin/ifconfig ifconfig
'';
2016-06-13 11:08:18 +00:00
buildInputs = [ openssl readline ];
2013-04-12 13:01:01 +00:00
hardeningEnable = [ "pie" ];
2016-02-26 16:45:49 +00:00
2018-08-08 21:38:23 +00:00
checkInputs = [ which nettools ];
doCheck = false; # fails a bunch, hangs
meta = {
2013-04-12 13:01:01 +00:00
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 = stdenv.lib.platforms.unix;
2013-04-12 13:01:01 +00:00
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.eelco ];
};
}