mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
shadowsocks-rust: init at 1.7.0
This commit is contained in:
parent
0610d30e5b
commit
3039cfcfde
29
pkgs/tools/networking/shadowsocks-rust/default.nix
Normal file
29
pkgs/tools/networking/shadowsocks-rust/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium, Security }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "shadowsocks-rust";
|
||||||
|
version = "1.7.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
rev = "v${version}";
|
||||||
|
owner = "shadowsocks";
|
||||||
|
repo = pname;
|
||||||
|
sha256 = "0mqjm54mp6c9mfdl3gf01v9vm2rjll8fw63n6j4qgv01y4hrsm4f";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "1m0p40z6qx6s0r1x6apz56n2s4ppn8b2cff476xrfhp6s1j046q7";
|
||||||
|
|
||||||
|
buildInputs = [ openssl libsodium ]
|
||||||
|
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
|
# tries to read /etc/resolv.conf, hence fails in sandbox
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/shadowsocks/shadowsocks-rust;
|
||||||
|
description = "A Rust port of shadowsocks";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.marsam ];
|
||||||
|
};
|
||||||
|
}
|
@ -5447,6 +5447,10 @@ in
|
|||||||
|
|
||||||
shadowsocks-libev = callPackage ../tools/networking/shadowsocks-libev { };
|
shadowsocks-libev = callPackage ../tools/networking/shadowsocks-libev { };
|
||||||
|
|
||||||
|
shadowsocks-rust = callPackage ../tools/networking/shadowsocks-rust {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
sharutils = callPackage ../tools/archivers/sharutils { };
|
sharutils = callPackage ../tools/archivers/sharutils { };
|
||||||
|
|
||||||
schema2ldif = callPackage ../tools/text/schema2ldif { };
|
schema2ldif = callPackage ../tools/text/schema2ldif { };
|
||||||
|
Loading…
Reference in New Issue
Block a user