summary refs log tree commit diff
path: root/pkgs/applications/networking/cloudflared/default.nix
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2018-10-17 22:41:42 -0500
committerAustin Seipp <aseipp@pobox.com>2018-10-23 15:20:35 -0500
commit46dc76b60b2c2736920fd05b8c6069629a302e41 (patch)
tree2469f989e57947fefe59212987f2f9689ad12a93 /pkgs/applications/networking/cloudflared/default.nix
parentf7a785fbd1e74d7919d3087ac85b03cc337549f4 (diff)
downloadnixlib-46dc76b60b2c2736920fd05b8c6069629a302e41.tar
nixlib-46dc76b60b2c2736920fd05b8c6069629a302e41.tar.gz
nixlib-46dc76b60b2c2736920fd05b8c6069629a302e41.tar.bz2
nixlib-46dc76b60b2c2736920fd05b8c6069629a302e41.tar.lz
nixlib-46dc76b60b2c2736920fd05b8c6069629a302e41.tar.xz
nixlib-46dc76b60b2c2736920fd05b8c6069629a302e41.tar.zst
nixlib-46dc76b60b2c2736920fd05b8c6069629a302e41.zip
cloudflared: init at 2018.10.3
'cloudflared' is a multi-purpose client-side tool for CloudFlare Argo
Tunnel, CloudFlare Access, as well as including a simple DNS-over-HTTP
(DoH) proxy tool as well.

However, 'cloudflared' is NOT available under an open source license.
Furthermore, the exact terms of redistribution (namely, if we are able
to redistribute binaries at all) are not entirely clear to me. As a
result, I have filed the following bug report concerning the terms of
redistribution for the source code and binaries:

  https://github.com/cloudflare/cloudflared/issues/53

'cloudflared' does have source code available, however, and it
encourages users to use 'go install' in order to set it up, in fact (or
download their prebuilt, compiled binaries). So using the source seems
to be encouraged. Even then, I'm still not sure if Hydra can serve these
binaries.

In lieu of a more pointed answer regarding source/binary licensing, and
to avoid keeping this expression in my private tree, I've marked it as
'unfree' (to avoid Hydra serving it in any way) as well as compiled from
source (to avoid any 'redistribution allowed while unmodified' terms
that may crop up).

The dependencies for this build were generated using 'dep2nix'.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/applications/networking/cloudflared/default.nix')
-rw-r--r--pkgs/applications/networking/cloudflared/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cloudflared/default.nix b/pkgs/applications/networking/cloudflared/default.nix
new file mode 100644
index 000000000000..fd047147e01a
--- /dev/null
+++ b/pkgs/applications/networking/cloudflared/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name    = "cloudflared-${version}";
+  version = "2018.10.3";
+
+  goPackagePath = "github.com/cloudflare/cloudflared";
+
+  src = fetchFromGitHub {
+    owner  = "cloudflare";
+    repo   = "cloudflared";
+    rev    = "41916365b689bf2cc1446ea5717e4d26cc8aed43"; # untagged
+    sha256 = "109bhnmvlvj3ag9vw090fy202z8aaqr1rakhn8v550wwy30h9zkf";
+  };
+
+  goDeps = ./deps.nix;
+
+  meta = with stdenv.lib; {
+    description = "CloudFlare Argo Tunnel daemon (and DNS-over-HTTPS client)";
+    homepage    = https://www.cloudflare.com/products/argo-tunnel;
+    license     = licenses.unfree;
+    platforms   = platforms.unix;
+    maintainers = [ maintainers.thoughtpolice ];
+  };
+}