From patchwork Fri Mar 11 03:47:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dominic Martinez X-Patchwork-Id: 37745 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0C85827BBEA; Fri, 11 Mar 2022 03:49:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 84BCF27BBE9 for ; Fri, 11 Mar 2022 03:49:25 +0000 (GMT) Received: from localhost ([::1]:53564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSWHM-0006qR-N3 for patchwork@mira.cbaines.net; Thu, 10 Mar 2022 22:49:24 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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)))