about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-02-11T00·01+0000
committerVincent Ambo <tazjin@google.com>2020-02-11T00·09+0000
commit9b37bad180424701265c3225970102ce40485604 (patch)
tree285721a0be1491be156296e53ce9559e4b073cbb /third_party
parent04ffc5e66ffd9dfa2cd1f1288699b8a8aeddc641 (diff)
fix(third_party/tailscale): Add default relaynode acl.json to output r/529
Diffstat (limited to 'third_party')
-rw-r--r--third_party/tailscale/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/third_party/tailscale/default.nix b/third_party/tailscale/default.nix
index b315424ba3d2..6a80d760e5ad 100644
--- a/third_party/tailscale/default.nix
+++ b/third_party/tailscale/default.nix
@@ -5,7 +5,7 @@
 
 let
   inherit (pkgs.third_party) buildGoModule fetchFromGitHub;
-in buildGoModule {
+in buildGoModule rec {
   pname = "tailscale";
   version = "fef25489";
 
@@ -25,6 +25,11 @@ in buildGoModule {
     "cmd/tailscaled"
   ];
 
+  postInstall = ''
+    mkdir -p $out/etc/
+    cp ${src}/cmd/relaynode/acl.json $out/etc/
+  '';
+
   meta = with lib; {
     homepage = "https://tailscale.com/";
     description = "Private WireGuard networks made easy";