-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40758 from kirelagin/wireguard-go
wireguard-go: init at 0.0.20180514
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters