mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
29 lines
801 B
Nix
29 lines
801 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shadowsocks-rust";
|
|
version = "1.8.13";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "shadowsocks";
|
|
repo = pname;
|
|
sha256 = "1whhn689glw7ips3c7fxx868ib6kyrqsjxmqv7pi95wdjwgzjj40";
|
|
};
|
|
|
|
cargoSha256 = "02n9sw7954vv6m1rggdlw5mzf4cyg5zi7hc2jkd7pz64p67fnm1d";
|
|
|
|
SODIUM_USE_PKG_CONFIG = 1;
|
|
|
|
buildInputs = [ openssl libsodium ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/shadowsocks/shadowsocks-rust";
|
|
description = "A Rust port of shadowsocks";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|