boringtun: 20190407 -> 0.2.0

This commit is contained in:
Mario Rodas 2019-09-27 23:00:00 -05:00
parent 50c265ef0e
commit b7704dab09
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8
1 changed files with 3 additions and 11 deletions

View File

@ -2,25 +2,17 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "boringtun"; pname = "boringtun";
# "boringtun" is still undergoing review for security concerns. version = "0.2.0";
# The GitHub page does not show any release yet,
# use 20190407 as version number to indicate that it is an unstable version.
version = "20190407";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cloudflare"; owner = "cloudflare";
repo = pname; repo = pname;
rev = "b040eb4fd1591b1d5ceb07c6cbb0856553f50adc"; rev = "v${version}";
sha256 = "04i53dvxld2a0xzr0gfl895rcwfvisj1rfs7rl0444gml8s8xyb3"; sha256 = "1mijy51hd8c4as9g4ivpfxismc9m5m3nhibfvclh3wrlcmp1ha9c";
}; };
cargoSha256 = "1gvmshwg9b486933vfgkg2r8nn6w6dyz42hqjy74p785fcg0v5hs"; cargoSha256 = "1gvmshwg9b486933vfgkg2r8nn6w6dyz42hqjy74p785fcg0v5hs";
# To prevent configuration phase error that is caused by
# lacking a new line in file ".cargo/config",
# we append a new line to the end of file.
preConfigure = "echo '' >> .cargo/config";
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
# Testing this project requires sudo, Docker and network access, etc. # Testing this project requires sudo, Docker and network access, etc.