Skip to content

Commit

Permalink
Merge pull request #40758 from kirelagin/wireguard-go
Browse files Browse the repository at this point in the history
wireguard-go: init at 0.0.20180514
  • Loading branch information
Mic92 committed May 19, 2018
2 parents e5cbbd6 + 388b214 commit d0d9f49
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,11 @@
github = "kini";
name = "Keshav Kini";
};
kirelagin = {
email = "kirelagin@gmail.com";
github = "kirelagin";
name = "Kirill Elagin";
};
kkallio = {
email = "tierpluspluslists@gmail.com";
name = "Karn Kallio";
Expand Down
28 changes: 28 additions & 0 deletions pkgs/tools/networking/wireguard-go/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ stdenv, buildGoPackage, fetchzip }:

buildGoPackage rec {
name = "wireguard-go-${version}";
version = "0.0.20180514";

goPackagePath = "wireguard-go";

src = fetchzip {
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
sha256 = "1i1w4vj8w353b92nfhs92k0f7fifrwi067qfmgckdk0kk76nv2id";
};

goDeps = ./deps.nix;

postPatch = ''
# Replace local imports so that go tools do not trip on them
find . -name '*.go' -exec sed -i '/import (/,/)/s@"./@"${goPackagePath}/@' {} \;
'';

meta = with stdenv.lib; {
description = "Userspace Go implementation of WireGuard";
homepage = https://git.zx2c4.com/wireguard-go/about/;
license = licenses.gpl2;
maintainers = with maintainers; [ kirelagin ];
platforms = with platforms; linux ++ darwin ++ windows;
};
}
30 changes: 30 additions & 0 deletions pkgs/tools/networking/wireguard-go/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5718,6 +5718,8 @@ with pkgs;

wipe = callPackage ../tools/security/wipe { };

wireguard-go = callPackage ../tools/networking/wireguard-go { };

wkhtmltopdf = callPackage ../tools/graphics/wkhtmltopdf {
overrideDerivation = lib.overrideDerivation;
};
Expand Down

0 comments on commit d0d9f49

Please sign in to comment.