11 stdenv.mkDerivation rec {
16 url = "http://www.dest-unreach.org/socat/download/${pname}-${version}.tar.bz2";
17 hash = "sha256-aig1Zdt8+GKSxvcFBMWKuwPimIit7tWmxfNFfoA8G4E=";
22 substituteInPlace test.sh \
23 --replace /bin/rm rm \
24 --replace /sbin/ifconfig ifconfig
27 buildInputs = [ openssl readline ];
29 hardeningEnable = [ "pie" ];
31 enableParallelBuilding = true;
33 nativeCheckInputs = [ which nettools ];
34 doCheck = false; # fails a bunch, hangs
36 passthru.tests = lib.optionalAttrs stdenv.buildPlatform.isLinux {
37 musl = buildPackages.pkgsMusl.socat;
41 description = "Utility for bidirectional data transfer between two independent data channels";
42 homepage = "http://www.dest-unreach.org/socat/";
43 platforms = platforms.unix;
44 license = with licenses; [ gpl2Only ];
46 mainProgram = "socat";