1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/pkgs/tools/networking/proxychains/default.nix
Richard Marko e6b5d5401e proxychains: copy src/proxychains.conf to /etc
As requested by Infinisil in #86225.
2020-09-09 15:14:13 +02:00

28 lines
701 B
Nix

{ stdenv, fetchFromGitHub } :
stdenv.mkDerivation rec {
pname = "proxychains";
version = "4.2.0";
src = fetchFromGitHub {
owner = "haad";
repo = "proxychains";
rev = "${pname}-${version}";
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;
};
}