1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 23:10:02 +00:00
nixpkgs/pkgs/tools/networking/shadowsocks-rust/default.nix

29 lines
801 B
Nix
Raw Normal View History

2019-03-02 00:59:49 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium, Security }:
rustPlatform.buildRustPackage rec {
pname = "shadowsocks-rust";
2020-09-10 04:58:51 +01:00
version = "1.8.17";
2019-03-02 00:59:49 +00:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "shadowsocks";
repo = pname;
2020-09-10 04:58:51 +01:00
sha256 = "1fl23q4hccwdapknj7yd8294jil15758k1r6ljbms2gijlly9lg3";
2019-03-02 00:59:49 +00:00
};
2020-09-10 04:58:51 +01:00
cargoSha256 = "0jgzh9p6ziq3337461cj4fkbghks3bq8dnrn6ab8dkynjwvd47bx";
2020-05-15 10:20:00 +01:00
SODIUM_USE_PKG_CONFIG = 1;
2019-03-02 00:59:49 +00:00
buildInputs = [ openssl libsodium ]
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ pkgconfig ];
meta = with stdenv.lib; {
homepage = "https://github.com/shadowsocks/shadowsocks-rust";
2019-03-02 00:59:49 +00:00
description = "A Rust port of shadowsocks";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}