Skip to content
Permalink
Browse files

wireguard-go: init at 0.0.20180514

  • Loading branch information...
kirelagin committed May 19, 2018
1 parent 301072d commit b599f672e44270d2c6154b7855ddec11e4d43a93
@@ -0,0 +1,27 @@
{ stdenv, buildGoPackage, fetchurl }:

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

goPackagePath = "wireguard-go";

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

goDeps = ./deps.nix;

patchPhase = ''
# 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;
platforms = with platforms; linux ++ darwin ++ windows;
};
}

Some generated files are not rendered by default. Learn more.

@@ -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;
};

0 comments on commit b599f67

Please sign in to comment.
You can’t perform that action at this time.