From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4L8NIFzqQmSdPgAASxT56A (envelope-from ) for ; Fri, 21 Apr 2023 21:56:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mJUWIFzqQmQsLAEA9RJhRA (envelope-from ) for ; Fri, 21 Apr 2023 21:56:12 +0200 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 2CB8030051 for ; Fri, 21 Apr 2023 21:56:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppwrU-0001f1-Cy; Fri, 21 Apr 2023 15:56:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppwrT-0001ep-7W for guix-patches@gnu.org; Fri, 21 Apr 2023 15:56:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppwrS-0001wu-V2 for guix-patches@gnu.org; Fri, 21 Apr 2023 15:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppwrS-0003FY-Qn for guix-patches@gnu.org; Fri, 21 Apr 2023 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63003] [PATCH 3/3] gnu: Add restic-rest-server. Resent-From: Timo Wilken Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 21 Apr 2023 19:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63003 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63003@debbugs.gnu.org Cc: Timo Wilken Received: via spool by 63003-submit@debbugs.gnu.org id=B63003.168210695212447 (code B ref 63003); Fri, 21 Apr 2023 19:56:02 +0000 Received: (at 63003) by debbugs.gnu.org; 21 Apr 2023 19:55:52 +0000 Received: from localhost ([127.0.0.1]:41198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppwrH-0003Ec-Cy for submit@debbugs.gnu.org; Fri, 21 Apr 2023 15:55:51 -0400 Received: from mx1.mythic-beasts.com ([46.235.224.141]:43097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppwrB-0003DK-C6 for 63003@debbugs.gnu.org; Fri, 21 Apr 2023 15:55:47 -0400 Received: by mailhub-cam-d.mythic-beasts.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppwr4-001yrJ-TC; Fri, 21 Apr 2023 20:55:39 +0100 From: Timo Wilken Date: Fri, 21 Apr 2023 21:55:15 +0200 Message-Id: <20230421195515.10316-3-guix@twilken.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230421195515.10316-1-guix@twilken.net> References: <20230421195515.10316-1-guix@twilken.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BlackCat-Spam-Score: 9 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682106972; a=rsa-sha256; cv=none; b=IwrdKa0BU7ZvSOdEE4e3Uj6Sr/FqziTW/2MiBxeILPRjR0HI+MdQKVUjQ0W3e6zZXZ5z/Z SqvFoQ8ax+HBU2Xd5/B40399aCMQJZTxF6mipmuHI1wKrcm1cRrNewwC9ouXEOGO66g21c VayJpRJCwaNEYny4FKTZjh3bHfQvVuQOF8TR2BVPQghM/xOfdvuObNPX38dhLWIqJX8ytl x7EWcjAH3D/mPrfu66I0wVSCgNNw8rnohe8qM3b1attOjy6SZTlZZLSidWxWMsU4xMlinE upO7lUW/VyufxPjgb0ZYuOrVUlr6jMI535C3F94Q6Sm4MnBrGRfOxbLCVswu3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682106972; 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; bh=O5GAHJPkmsp4Hn5ixvVu0g9wjTc8lgmqybgxCVIenBs=; b=OpXxsdLftyeX1xdDXW6J7sss5eqiRfX+Yx4pAjFvAPjO/3Xloa1CTwLrWxsjllnjvYT2V0 Cfo+un7Tsy6v8GcVIhic7ixNO2amNzUBpat2XvHrZQJEKrSMp7QPkTWm4iHcZQ6QM2Vs2a jEsSMNEBQmEfGIeu3FOts1TA4s28TFXHORlek+qddAA1AlHRmfNmQHyIL7gVRpkh+R6ApO pDP7pXLS1JW3k+LAnFoA1icp3EmVs/+27uV5y0C5lHCt32KWQrEvOpy5htwBUEHKkK9p3r 1IJidyyRn2kGsnE9MdbWgyn6qqv9/gVZMlS7YSA7D//ISO1/nDU8Lod5/JEwqQ== X-Migadu-Spam-Score: -1.11 X-Spam-Score: -1.11 X-Migadu-Queue-Id: 2CB8030051 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; 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-TUID: Mp5QekarK9A9 * gnu/packages/backup.scm (restic-rest-server): New variable. --- gnu/packages/backup.scm | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 134647d33d..94e8e3acc4 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2022 Feng Shu +;;; Copyright © 2023 Timo Wilken ;;; ;;; This file is part of GNU Guix. ;;; @@ -1029,6 +1030,53 @@ (define-public restic @end itemize") (license license:bsd-2))) +(define-public restic-rest-server + (package + (name "restic-rest-server") + (version "0.11.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/restic/rest-server") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1nvmxc9x0mlks6yfn66fmwn50k5q83ip4g9vvb0kndzd7hwcyacy")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/restic/rest-server/cmd/rest-server" + #:unpack-path "github.com/restic/rest-server" + #:install-source? #f ;all we need is the binary + #:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys . args) + (when tests? + ;; Unit tests seems to break with Guix' non-standard TMPDIR. + (setenv "TMPDIR" "/tmp") + (apply (assoc-ref %standard-phases + 'check) args)))) + (add-after 'install 'rename-binary + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion (assoc-ref outputs "out") + ;; "rest-server" is a bit too generic. + (rename-file "bin/rest-server" + "bin/restic-rest-server"))))))) + (propagated-inputs (list go-golang-org-x-crypto + go-github-com-spf13-cobra + go-github-com-prometheus-client-golang + go-github-com-miolini-datacounter + go-github-com-minio-sha256-simd + go-github-com-gorilla-handlers + go-github-com-coreos-go-systemd-activation)) + (home-page "https://github.com/restic/rest-server") + (synopsis "Restic REST server") + (description + "The Restic REST server is a high performance HTTP server that implements +restic's REST backend API. It provides a secure and efficient way to backup +data remotely, using the restic backup client and a @code{rest:} URL.") + (license license:bsd-2))) + (define-public zbackup (package (name "zbackup") -- 2.39.2