Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bf598c4b77c0
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 32ef10d2dd9d
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Apr 13, 2019

  1. boringtun: init at 20190407

    xrelkd committed Apr 13, 2019
    Copy the full SHA
    6ad4a95 View commit details
  2. Merge pull request #59345 from xrelkd/boringtun

    boringtun: init at 20190407
    markuskowa authored Apr 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    32ef10d View commit details
Showing with 36 additions and 0 deletions.
  1. +34 −0 pkgs/tools/networking/boringtun/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
34 changes: 34 additions & 0 deletions pkgs/tools/networking/boringtun/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ 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 = "0mqgd5r3rdzaw3vkmz0rswn3cwq9b4im6g4rrq7wr7pgrzq96xwm";

# 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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1042,6 +1042,8 @@ in

borgbackup = callPackage ../tools/backup/borg { };

boringtun = callPackage ../tools/networking/boringtun { };

boomerang = libsForQt5.callPackage ../development/tools/boomerang { };

boost-build = callPackage ../development/tools/boost-build { };