2020-02-10 23:15:44 +01:00
|
|
|
# This file packages the Tailscale client using the standard upstream
|
|
|
|
# Go packaging mechanisms instead of buildGo.nix
|
|
|
|
|
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
2020-02-21 13:47:29 +01:00
|
|
|
inherit (pkgs) buildGoModule fetchFromGitHub;
|
2020-02-11 01:01:32 +01:00
|
|
|
in buildGoModule rec {
|
2020-02-10 23:15:44 +01:00
|
|
|
pname = "tailscale";
|
|
|
|
version = "fef25489";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tailscale";
|
|
|
|
repo = "tailscale";
|
|
|
|
rev = "fef254898178d100f25b98530499adcf07cfded3";
|
|
|
|
sha256 = "1islxzr8lhnl2f0r686mcciwb8lzvqjczg9fs0nagr5pp6dsi9fa";
|
|
|
|
};
|
|
|
|
|
2020-02-11 01:43:55 +01:00
|
|
|
patches = [ ./0001-fix-client-logger.patch ];
|
|
|
|
|
2020-02-10 23:15:44 +01:00
|
|
|
goPackagePath = "tailscale.com";
|
|
|
|
modSha256 = "0cnih9flwgqjq4x4cwyac9yyz1prv2i2by1ki3g71ai8q621bq10";
|
|
|
|
subPackages = [
|
2020-02-11 00:39:38 +01:00
|
|
|
"cmd/relaynode"
|
|
|
|
"cmd/taillogin"
|
2020-02-10 23:15:44 +01:00
|
|
|
"cmd/tailscale"
|
|
|
|
"cmd/tailscaled"
|
|
|
|
];
|
|
|
|
|
2020-02-11 01:01:32 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/etc/
|
|
|
|
cp ${src}/cmd/relaynode/acl.json $out/etc/
|
|
|
|
'';
|
|
|
|
|
2020-02-10 23:15:44 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://tailscale.com/";
|
|
|
|
description = "Private WireGuard networks made easy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ tazjin ];
|
|
|
|
};
|
|
|
|
}
|