forked from mirrors/nixpkgs
shadowsocks-libev: init at 2.4.5
This commit is contained in:
parent
cc58339345
commit
6f466c9dad
42
pkgs/tools/networking/shadowsocks-libev/default.nix
Normal file
42
pkgs/tools/networking/shadowsocks-libev/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ withPolarSSL ? false
|
||||
, stdenv, fetchurl, zlib
|
||||
, openssl ? null
|
||||
, polarssl ? null
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "2.4.5";
|
||||
sha256 = "08bf7f240ee39fa700aac636ca84b65f2f0cfbcfa63a0783afb05872940067e2";
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
inherit version;
|
||||
name = "shadowsocks-libev-${version}";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/shadowsocks/shadowsocks-libev/archive/v${version}.tar.gz";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ zlib ]
|
||||
++ stdenv.lib.optional (!withPolarSSL) openssl
|
||||
++ stdenv.lib.optional withPolarSSL polarssl;
|
||||
|
||||
configureFlags = stdenv.lib.optional (withPolarSSL)
|
||||
[ "--with-crypto-library=polarssl"
|
||||
"--with-polarssl=${polarssl}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A lightweight secured SOCKS5 proxy";
|
||||
longDescription = ''
|
||||
Shadowsocks-libev is a lightweight secured SOCKS5 proxy for embedded devices and low-end boxes.
|
||||
It is a port of Shadowsocks created by @clowwindy, which is maintained by @madeye and @linusyang.
|
||||
'';
|
||||
homepage = https://github.com/shadowsocks/shadowsocks-libev;
|
||||
license = stdenv.lib.licenses.gpl3Plus;
|
||||
maintainers = [ stdenv.lib.maintainers.nfjinjing ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
|
@ -3133,6 +3133,8 @@ let
|
|||
|
||||
sg3_utils = callPackage ../tools/system/sg3_utils { };
|
||||
|
||||
shadowsocks-libev = callPackage ../tools/networking/shadowsocks-libev { };
|
||||
|
||||
sharutils = callPackage ../tools/archivers/sharutils { };
|
||||
|
||||
shotwell = callPackage ../applications/graphics/shotwell {
|
||||
|
|
Loading…
Reference in a new issue