git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #40758 from kirelagin/wireguard-go

wireguard-go: init at 0.0.20180514

commitd0d9f4905716bb65718c256d8dc4461233284d6e authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 19 May 2018, 12:27 (9 years ago) parente5cbbd6388b214
4 files changed+65
maintainers/maintainer-list.nix+5 pkgs/tools/networking/wireguard-go/default.nix+28 pkgs/tools/networking/wireguard-go/deps.nix+30 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+5
@@ -1997,6 +1997,11 @@
19971997 github = "kini";
19981998 name = "Keshav Kini";
19991999 };
2000+ kirelagin = {
2001+ email = "kirelagin@gmail.com";
2002+ github = "kirelagin";
2003+ name = "Kirill Elagin";
2004+ };
20002005 kkallio = {
20012006 email = "tierpluspluslists@gmail.com";
20022007 name = "Karn Kallio";
pkgs/tools/networking/wireguard-go/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, buildGoPackage, fetchzip }:
2+
3+buildGoPackage rec {
4+ name = "wireguard-go-${version}";
5+ version = "0.0.20180514";
6+
7+ goPackagePath = "wireguard-go";
8+
9+ src = fetchzip {
10+ url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
11+ sha256 = "1i1w4vj8w353b92nfhs92k0f7fifrwi067qfmgckdk0kk76nv2id";
12+ };
13+
14+ goDeps = ./deps.nix;
15+
16+ postPatch = ''
17+ # Replace local imports so that go tools do not trip on them
18+ find . -name '*.go' -exec sed -i '/import (/,/)/s@"./@"${goPackagePath}/@' {} \;
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ description = "Userspace Go implementation of WireGuard";
23+ homepage = https://git.zx2c4.com/wireguard-go/about/;
24+ license = licenses.gpl2;
25+ maintainers = with maintainers; [ kirelagin ];
26+ platforms = with platforms; linux ++ darwin ++ windows;
27+ };
28+}
pkgs/tools/networking/wireguard-go/deps.nixnew file+30
@@ -0,0 +1,30 @@
1+# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
2+[
3+ {
4+ goPackagePath = "golang.org/x/crypto";
5+ fetch = {
6+ type = "git";
7+ url = "https://go.googlesource.com/crypto";
8+ rev = "1a580b3eff7814fc9b40602fd35256c63b50f491";
9+ sha256 = "11adgxc6fzcb3dxr5v2g4nk6ggrz04qnx633hzgmzfh2wv3blgv7";
10+ };
11+ }
12+ {
13+ goPackagePath = "golang.org/x/net";
14+ fetch = {
15+ type = "git";
16+ url = "https://go.googlesource.com/net";
17+ rev = "2491c5de3490fced2f6cff376127c667efeed857";
18+ sha256 = "1wmijnrxi9p2rv8g6clqkzdihn5ncv29j0s4s1bz9ksncdr36ll3";
19+ };
20+ }
21+ {
22+ goPackagePath = "golang.org/x/sys";
23+ fetch = {
24+ type = "git";
25+ url = "https://go.googlesource.com/sys";
26+ rev = "7c87d13f8e835d2fb3a70a2912c811ed0c1d241b";
27+ sha256 = "03fhkng37rczqwfgah5hd7d373jps3hcfx79dmky2fh62yvpcyn3";
28+ };
29+ }
30+]
pkgs/top-level/all-packages.nix+2
@@ -5718,6 +5718,8 @@ with pkgs;
57185718
57195719 wipe = callPackage ../tools/security/wipe { };
57205720
5721+ wireguard-go = callPackage ../tools/networking/wireguard-go { };
5722+
57215723 wkhtmltopdf = callPackage ../tools/graphics/wkhtmltopdf {
57225724 overrideDerivation = lib.overrideDerivation;
57235725 };