nixpkgs/pkgs/tools/networking/boringtun/default.nix
Alyssa Ross 062210bdff treewide: update cargoSha256 hashes for cargo-vendor upgrade
A recent upgrade of cargo-vendor changed its output slightly, which
broke all cargoSha256 hashes in nixpkgs.
See https://github.com/NixOS/nixpkgs/issues/60668 for more information.

Since then, a few hashes have been fixed in master by hand, but there
were a lot still to do, so I did all of the ones left over with some
scripts I wrote.

The one hash I wasn’t able to update was habitat's, because it’s
currently broken and the build doesn’t get far enough to produce a
hash anyway.
2019-06-01 15:17:52 +00:00

35 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "boringtun";
# "boringtun" is still undergoing review for security concerns.
# 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 {
owner = "cloudflare";
repo = pname;
rev = "b040eb4fd1591b1d5ceb07c6cbb0856553f50adc";
sha256 = "04i53dvxld2a0xzr0gfl895rcwfvisj1rfs7rl0444gml8s8xyb3";
};
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";
# Testing this project requires sudo, Docker and network access, etc.
doCheck = false;
meta = with stdenv.lib; {
description = "Userspace WireGuard® implementation in Rust";
homepage = https://github.com/cloudflare/boringtun;
license = licenses.bsd3;
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux ++ platforms.darwin;
};
}