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

28 lines
701 B
Nix
Raw Normal View History

2016-07-05 12:24:21 +01:00
{ stdenv, fetchFromGitHub } :
stdenv.mkDerivation rec {
pname = "proxychains";
2016-07-05 12:24:21 +01:00
version = "4.2.0";
src = fetchFromGitHub {
owner = "haad";
repo = "proxychains";
rev = "${pname}-${version}";
2016-07-05 12:24:21 +01:00
sha256 = "015skh3z1jmm8kxbm3nkqv1w56kcvabdmcbmpwzywxr4xnh3x3pc";
};
postPatch = ''
# Temporary work-around; most likely fixed by next upstream release
sed -i Makefile -e '/-lpthread/a LDFLAGS+=-ldl'
'';
postInstall = ''
cp src/proxychains.conf $out/etc
'';
meta = {
description = "Proxifier for SOCKS proxies";
homepage = "http://proxychains.sourceforge.net";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
};
}