From: Efraim Flashner <efraim@flashner.co.il>
To: 58876@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#58876] [PATCH] gnu: Add onedrive.
Date: Sat, 29 Oct 2022 23:50:07 +0300 [thread overview]
Message-ID: <47607d2a13da204c339a98f998a9d3d1c5b0fd25.1667076594.git.efraim@flashner.co.il> (raw)
* gnu/packages/sync.scm (onedrive): New variable.
---
gnu/packages/sync.scm | 65 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 64 insertions(+), 1 deletion(-)
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 <efraim@flashner.co.il>
+;;; Copyright © 2015-2020, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2021 Ludovic Courtès <ludo@gnu.org>
@@ -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")
base-commit: 34e6c5d4280d67729bbd8cdae333ca5e0bd580f5
--
2.38.0
next reply other threads:[~2022-10-29 20:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-29 20:50 Efraim Flashner [this message]
2022-11-15 8:26 ` bug#58876: [PATCH] gnu: Add onedrive Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47607d2a13da204c339a98f998a9d3d1c5b0fd25.1667076594.git.efraim@flashner.co.il \
--to=efraim@flashner.co.il \
--cc=58876@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.