From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QHC4KMfGKmJaJgAAgWs5BA (envelope-from ) for ; Fri, 11 Mar 2022 04:49:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YHIqJsfGKmIvEQAA9RJhRA (envelope-from ) for ; Fri, 11 Mar 2022 04:49:27 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B27C31A67 for ; Fri, 11 Mar 2022 04:49:27 +0100 (CET) Received: from localhost ([::1]:53564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSWHO-0006qR-F4 for larch@yhetil.org; Thu, 10 Mar 2022 22:49:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSWH2-0006O7-3Z for guix-patches@gnu.org; Thu, 10 Mar 2022 22:49:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSWH1-000666-RV for guix-patches@gnu.org; Thu, 10 Mar 2022 22:49:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSWH1-0002KB-QL for guix-patches@gnu.org; Thu, 10 Mar 2022 22:49:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54335] [PATCH 14/14] gnu: Add nebula. Resent-From: Dominic Martinez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 11 Mar 2022 03:49:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54335 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54335@debbugs.gnu.org Cc: Dominic Martinez Received: via spool by 54335-submit@debbugs.gnu.org id=B54335.16469705258875 (code B ref 54335); Fri, 11 Mar 2022 03:49:03 +0000 Received: (at 54335) by debbugs.gnu.org; 11 Mar 2022 03:48:45 +0000 Received: from localhost ([127.0.0.1]:36197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSWGi-0002J5-N5 for submit@debbugs.gnu.org; Thu, 10 Mar 2022 22:48:45 -0500 Received: from mailout-pe-a.jellyfish.systems ([198.54.127.68]:63229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSWGg-0002IU-O8 for 54335@debbugs.gnu.org; Thu, 10 Mar 2022 22:48:43 -0500 Received: from NEW-01-3.privateemail.com (unknown [10.35.5.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout-pe-a.jellyfish.systems (Postfix) with ESMTPSA id 4KFBjw1qBVz9skW for <54335@debbugs.gnu.org>; Fri, 11 Mar 2022 03:48:36 +0000 (UTC) Received: from MTA-05.privateemail.com (unknown [10.50.14.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by NEW-01-3.privateemail.com (Postfix) with ESMTPS id 2E3581005882 for <54335@debbugs.gnu.org>; Thu, 10 Mar 2022 22:48:36 -0500 (EST) Received: from mta-05.privateemail.com (localhost [127.0.0.1]) by mta-05.privateemail.com (Postfix) with ESMTP id 0505618000A3; Thu, 10 Mar 2022 22:48:36 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dominicm.dev; s=default; t=1646970516; bh=IW/+Lfuq4XUFYzxInZEC96WbobPakOSZ1CVnxnv8F04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zvv1/g9hcl5pkcXryXnhR0wmZjwSdEXHunVsPqCb0KNG8zFXY42kmCNqC/6eyTr9i rIx7iaHGnHGC2ynDUFFNIZ/57bMNo2MDy5mYaZ8xHauldXxQZy16p6iPJk5ZY9NnI2 VfgwRWEmJHDUVkzuKG2DA2sF9f5sCIoZ6/sZ7/+Ln1OMKeVQZxf6XMVzqAjwhgMn9V zmhAaBVftIIzy2H5ZxP0lpEpMo3UjWlknB4GXstw2tf36GP3FQ1JUxbgIPApDQnL8l A/HiPXGd5JuRzdgN99xrMkI8ggf8nf+lDY+FwmIVpxRG1348g7hveKKrPsCNuB5D+u YeZz0dzZmzsNA== Received: from localhost.localdomain (unknown [10.20.151.197]) by mta-05.privateemail.com (Postfix) with ESMTPA id 8B37E18000A0; Thu, 10 Mar 2022 22:48:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dominicm.dev; s=default; t=1646970515; bh=IW/+Lfuq4XUFYzxInZEC96WbobPakOSZ1CVnxnv8F04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cA3og/vzDkDIptai+AhYOxKtyhaNtx5aKNbuGscQItLdT60VfIXHkrhP71xVot/Fm CM0Q9a7CgexnMwT1sOhJPj7b/vjYjHjC4Fy5FptjwVJkUaja+dgO/fbNbTSlV8PGnZ SBYkUikMSopi1cm3bwosUG02ONpQlouKzyL9caRc2XKDfiYWXm2jLYzHrrawtywPft b14nOfI4dsAAMAouVrbDfagq6AGNx46We0E3sH2xgxjmiLoAlaFdTVQF/APFmT13T5 QrPFbybKRPdhddkaTJSAA77pcYkli0VJPXw2+ZfbUgajb7ElYRsJqTvPiYXauxMfT3 I0q5Xsw9+wcLA== From: Dominic Martinez Date: Thu, 10 Mar 2022 22:47:41 -0500 Message-Id: <20220311034741.14377-5-dom@dominicm.dev> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220311034741.14377-1-dom@dominicm.dev> References: <20220311031849.12681-1-dom@dominicm.dev> <20220311034741.14377-1-dom@dominicm.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646970567; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Yld7x77PH0rxuayZeFahyZmQwubV7v4nY505WdJcj6s=; b=dpy8M/Fy0JB8J3m4jYdiLZ0oouN1p15S4W/+JHKWPLCsNBLENejurYdLA5277j4bgwTrAM gCiOEYQmCfox/OvidGm+k2Js8135CoPsQMIYEJ+fW7zIHme+xlvu85QLvji4jQozvZK0Dw ceC0/dzGkL8V0Q8gfD4ri3p85oLNVluXeguJRdT0bCPPTGJhVaoZWPYOTvsFBwzrXJkpZq DBWrdoX+SNimhscJ+ba35jqu1MrBC4asHRZKIcdqFhbaWuizM+l1jNtjp5IYxXXh7SZR55 mmkWuRvf32zi6qy5koWarAsp8qDYkDKAnezNPoDedgR9ioSYy7FUnZeGg2iFsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646970567; a=rsa-sha256; cv=none; b=H+BWrNhHOd2fymzPUk5H3cL3+9qDCQX3+XnHwCOyGBQbukkA2/mLB6ejUUMziYL2Yv6Xvb QY3yyLsUPrW+0dFoTaW9lVqiFoO6STc2y8G5NndOOQNntIxgQzNZPYLRZaVV0DPxfxKqnc f8wX1areVtj/tSKqx5YuVTcdHEzU2lyuvAnop79RM6RtWZGvBb7xbTfh33y1dHh3s4eyEp D02q3+FIl0bYIF6c4AeEn0kM1Am8CWJIhQhFF91jo6YI9u+jQsw04e92y8P0GwzA3f4EbQ VXLSoRwXjWoePyv4tmkvxPGlIgIyV60TINAaJ7zVrdr50lx1kwKyqdnjB885Wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dominicm.dev header.s=default header.b="Zvv1/g9h"; dkim=fail ("headers rsa verify failed") header.d=dominicm.dev header.s=default header.b="cA3og/vz"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.60 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dominicm.dev header.s=default header.b="Zvv1/g9h"; dkim=fail ("headers rsa verify failed") header.d=dominicm.dev header.s=default header.b="cA3og/vz"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3B27C31A67 X-Spam-Score: 0.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: RSYgsjU93ltt * gnu/packages/networking.scm (nebula): New variable. --- gnu/packages/networking.scm | 80 +++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index b45f2f79f2..ab5be17241 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -48,6 +48,7 @@ ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2022 Simon South +;;; Copyright © 2022 Dominic Martinez ;;; ;;; This file is part of GNU Guix. ;;; @@ -140,6 +141,7 @@ (define-module (gnu packages networking) #:use-module (gnu packages shells) #:use-module (gnu packages sphinx) #:use-module (gnu packages sqlite) + #:use-module (gnu packages syncthing) #:use-module (gnu packages ssh) #:use-module (gnu packages tcl) #:use-module (gnu packages textutils) @@ -4191,3 +4193,81 @@ (define-public putty implementations.") (home-page "https://www.chiark.greenend.org.uk/~sgtatham/putty/") (license license:expat))) + +(define-public nebula + ;; NOTE: does not include nebula-service, which is incompatible with + ;; Shepherd. + (package + (name "nebula") + (version "1.5.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/slackhq/nebula") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14b7wgx83w1fhcbhsn0mfg872hkml4wwbzimb3bjvc3xpzx6w44k")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/slackhq/nebula" + #:install-source? #f + #:phases + (modify-phases %standard-phases + (replace 'build + (lambda _ + ;; Build nebula and nebula cert + (let* ((dir "github.com/slackhq/nebula") + (nebula-cmd (string-append dir "/cmd/nebula")) + (cert-cmd (string-append dir "/cmd/nebula-cert"))) + (invoke "go" "build" nebula-cmd) + (invoke "go" "build" cert-cmd)))) + + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bindir (string-append out "/bin"))) + (install-file "nebula" bindir) + (install-file "nebula-cert" bindir))))))) + (native-inputs + (list go-gopkg-in-yaml-v3 + go-golang-org-x-term + go-github-com-prometheus-common + go-github-com-pmezard-go-difflib + go-github-com-matttproud-golang-protobuf-extensions + go-github-com-davecgh-go-spew + go-gopkg-in-yaml-v2 + go-google-golang-org-protobuf + go-golang-org-x-sys + go-golang-org-x-net + go-golang-org-x-crypto + go-github-com-vishvananda-netns + go-github-com-vishvananda-netlink + go-github-com-skip2-go-qrcode + go-github-com-stretchr-testify + go-github-com-songgao-water + go-github-com-sirupsen-logrus + go-github-com-rcrowley-go-metrics + go-github-com-prometheus-procfs + go-github-com-prometheus-client-model + go-github-com-prometheus-client-golang + go-github-com-nbrownus-go-metrics-prometheus + go-github-com-miekg-dns + go-github-com-imdario-mergo + go-github-com-google-gopacket + go-github-com-gogo-protobuf + go-github-com-flynn-noise + go-github-com-cyberdelia-go-metrics-graphite + go-github-com-cespare-xxhash-v2 + go-github-com-armon-go-radix + go-github-com-anmitsu-go-shlex)) + (home-page "https://github.com/slackhq/nebula") + (synopsis "Scalable overlay networking tool") + (description + "Nebula is a scalable overlay networking tool with a focus on performance, +simplicity and security. It lets you seamlessly connect computers anywhere in +the world. Nebula is portable, and runs on Linux, OSX, Windows, iOS, and +Android. It can be used to connect a small number of computers, but is also +able to connect tens of thousands of computers.") + (license license:expat))) -- 2.34.0