a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
41 lines
973 B
Nix
41 lines
973 B
Nix
{ lib
|
|
, fetchurl
|
|
, nettools
|
|
, openssl
|
|
, readline
|
|
, stdenv
|
|
, which
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "socat";
|
|
version = "1.7.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.dest-unreach.org/socat/download/${pname}-${version}.tar.bz2";
|
|
sha256 = "1sbmqqvni3ss9wyay6ik5v81kxffkra80mh4ypgj74g82iba5b1z";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs test.sh
|
|
substituteInPlace test.sh \
|
|
--replace /bin/rm rm \
|
|
--replace /sbin/ifconfig ifconfig
|
|
'';
|
|
|
|
buildInputs = [ openssl readline ];
|
|
|
|
hardeningEnable = [ "pie" ];
|
|
|
|
checkInputs = [ which nettools ];
|
|
doCheck = false; # fails a bunch, hangs
|
|
|
|
meta = with lib; {
|
|
description = "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 = with licenses; [ gpl2Only ];
|
|
maintainers = with maintainers; [ eelco ];
|
|
};
|
|
}
|