From patchwork Sat Oct 29 20:50:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 44186 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 8335727BBEB; Sat, 29 Oct 2022 21:51:12 +0100 (BST) 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_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham 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 5A72A27BBE9 for ; Sat, 29 Oct 2022 21:51:10 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oosnH-0003Uy-UX; Sat, 29 Oct 2022 16:51:03 -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 1oosnG-0003PZ-Ek for guix-patches@gnu.org; Sat, 29 Oct 2022 16:51:02 -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 1oosnG-0003WC-1Z for guix-patches@gnu.org; Sat, 29 Oct 2022 16:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oosnF-0000Lm-Su for guix-patches@gnu.org; Sat, 29 Oct 2022 16:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58876] [PATCH] gnu: Add onedrive. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 29 Oct 2022 20:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58876 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58876@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16670766191289 (code B ref -1); Sat, 29 Oct 2022 20:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2022 20:50:19 +0000 Received: from localhost ([127.0.0.1]:36782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oosmY-0000Ki-Fp for submit@debbugs.gnu.org; Sat, 29 Oct 2022 16:50:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:46242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oosmW-0000Ka-8y for submit@debbugs.gnu.org; Sat, 29 Oct 2022 16:50:17 -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 1oosmW-0002k9-3R for guix-patches@gnu.org; Sat, 29 Oct 2022 16:50:16 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oosmT-0003P0-Pb for guix-patches@gnu.org; Sat, 29 Oct 2022 16:50:15 -0400 Received: by mail-ej1-x62a.google.com with SMTP id n12so20584946eja.11 for ; Sat, 29 Oct 2022 13:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=Ma/nFq+uioNTaG3/2kN8diXzTYi0vAZzYN3dEbfPkGM=; b=c6BaTDThHfbezaeaC1n+z/5ZVa7BRhBpcjN8qFiHPkFw7C7wCWTb2R+oL6gLmxGOM7 /LBXRSjm+d6yIIvzuHjWv/+QyoWDyO2TO8B3w1cAsJRL57aU08fl4e7imXqCYrhhZU8c UakTY3fB6HnltOrA0cE96ixnsrfxuodH0WTIGrQ7a5roIqABHyoT2VnCvp+obw28T4U4 i0j2LTEcLxOaxozrViUBf8RIglwu2/pey1GwRWlbfQOv3soI4ez4Oc8wG5/p3q7r3Krf 0z5b8PK0+kzJJLQ7ujNlPeTBIJgLwRUW3eTnDVFM/+Kn/p2VtiHceOCpNiIdqgYgH2bp Ad3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ma/nFq+uioNTaG3/2kN8diXzTYi0vAZzYN3dEbfPkGM=; b=bQVVblxByQclxLD9C05tuxGEJDfGX1/+4AI5gULzzQRHitn8bfUkBDzn72YBrEIAoD GMLo9wGEMSxT+StHTj1p5w9iTKw3hd2M69fiTqtums8sPRCx5IncsTqnex8TSWDjdb1M UTl247+5G+hCAjXp7oxKV4zO+HLwgPJ2osf9i0UYTwNA8n2bSTJjRQmaqTxQXcAurRiF qobkZNnN6gsz6/gyakTLhhSxa7Uvr0uPDSAjSaDeUZ7zik72bOEmOAk5Vulh6VXMc9LF 2NE3aa3ihszY3OLnCEcnBwGmKujJDOQNFivwjUTSwvH87E3thq6JetB32SDSjKwtPhlH JpZQ== X-Gm-Message-State: ACrzQf24TgYKHrlar4DbaitlfRtnfgDknEsM6I2V07DnRKO5W7MSr1lm KQ1bzmCy0EVxRmdFLPc/n3zvF9wQ4oTRzXs6 X-Google-Smtp-Source: AMsMyM5qDt4pfuZOiZJJwEzEmtp9O5CddtSnkpHTDO3eguU/82Rw+lA/tRdXGH7r+A2+1Vub0HUnjA== X-Received: by 2002:a17:907:3f94:b0:78d:9d2f:3002 with SMTP id hr20-20020a1709073f9400b0078d9d2f3002mr5355259ejc.40.1667076610672; Sat, 29 Oct 2022 13:50:10 -0700 (PDT) Received: from localhost ([141.226.15.67]) by smtp.gmail.com with ESMTPSA id p26-20020a17090653da00b0077826b92d99sm1110091ejo.12.2022.10.29.13.50.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Oct 2022 13:50:10 -0700 (PDT) From: Efraim Flashner Date: Sat, 29 Oct 2022 23:50:07 +0300 Message-Id: <47607d2a13da204c339a98f998a9d3d1c5b0fd25.1667076594.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=efraim.flashner@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/sync.scm (onedrive): New variable. --- gnu/packages/sync.scm | 65 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) base-commit: 34e6c5d4280d67729bbd8cdae333ca5e0bd580f5 diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm index 8c174c98ba..8330b96dd7 100644 --- a/gnu/packages/sync.scm +++ b/gnu/packages/sync.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner +;;; Copyright © 2015-2020, 2022 Efraim Flashner ;;; Copyright © 2017 Ricardo Wurmus ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2018, 2021 Ludovic Courtès @@ -31,6 +31,8 @@ (define-module (gnu packages sync) #:use-module (guix build-system go) #:use-module (guix build-system meson) #:use-module (guix build-system qt) + #:use-module (guix gexp) + #:use-module (guix utils) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) @@ -38,10 +40,12 @@ (define-module (gnu packages sync) #:use-module (gnu packages acl) #:use-module (gnu packages adns) #:use-module (gnu packages autotools) + #:use-module (gnu packages bash) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages crypto) #:use-module (gnu packages curl) + #:use-module (gnu packages dlang) #:use-module (gnu packages documentation) #:use-module (gnu packages freedesktop) #:use-module (gnu packages glib) @@ -359,6 +363,65 @@ (define-public owncloud-client silently and reliably flow across to every other.") (license license:gpl2+))) +(define-public onedrive + (package + (name "onedrive") + (version "2.4.21") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/abraunegg/onedrive") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04rnkc6ap9mkghvlj102f2gvnjqg3bs4vw9q3wm869fsflnm3599")))) + (build-system gnu-build-system) + (arguments + (list + #:configure-flags + #~(list "--enable-completions" + "--enable-notifications" + (string-append "--with-zsh-completion-dir=" + #$output "/share/zsh/site-functions") + (string-append "--with-fish-completion-dir=" + #$output "/share/fish/vendor_completions.d")) + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'link-to-external-libraries + (lambda* (#:key inputs #:allow-other-keys) + (setenv "DCFLAGS" (string-append + ;; The default linker is ld.gold. + "--linker=\"\" " + ;; Only link necessary libraries. + "-L--as-needed ")))) + (add-after 'configure 'adjust-makefile + (lambda _ + (substitute* "Makefile" + (("-L/gnu") "-Wl,-rpath=/gnu") + (("-O ") "-O2 ")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./onedrive" "--version"))))))) + (native-inputs + (list pkg-config)) + (inputs + (list bash-minimal + curl-minimal + ldc + libnotify + sqlite)) + (home-page "https://abraunegg.github.io") + (synopsis "Client for OneDrive") + (description "OneDrive Client which supports OneDrive Personal, OneDrive for +Business, OneDrive for Office365 and SharePoint and fully supports Azure +National Cloud Deployments. It supports one-way and two-way sync capabilities +and securely connects to Microsoft OneDrive services.") + (license license:gpl3))) + (define-public lsyncd (package (name "lsyncd")