mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
0f25d9fc43
This reverts commit7ecf7a3493
. This is no longer necessary as of socat 1.7.4.4, and in fact breaks the build. Fixes:497c7f26aa
("socat: 1.7.4.3 -> 1.7.4.4")
41 lines
925 B
Nix
41 lines
925 B
Nix
{ lib
|
|
, fetchurl
|
|
, nettools
|
|
, openssl
|
|
, readline
|
|
, stdenv
|
|
, which
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "socat";
|
|
version = "1.7.4.4";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.dest-unreach.org/socat/download/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-+9Qr0vDlSjr20BvfFThThKuC28Dk8aXhU7PgvhtjgKw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs test.sh
|
|
substituteInPlace test.sh \
|
|
--replace /bin/rm rm \
|
|
--replace /sbin/ifconfig ifconfig
|
|
'';
|
|
|
|
buildInputs = [ openssl readline ];
|
|
|
|
hardeningEnable = [ "pie" ];
|
|
|
|
nativeCheckInputs = [ 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/";
|
|
platforms = platforms.unix;
|
|
license = with licenses; [ gpl2Only ];
|
|
maintainers = with maintainers; [ eelco ];
|
|
};
|
|
}
|