From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aFYrG25qrmFZQwAAgWs5BA (envelope-from ) for ; Mon, 06 Dec 2021 20:54:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EEXuFm5qrmH/VgAAB5/wlQ (envelope-from ) for ; Mon, 06 Dec 2021 19:54:22 +0000 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 4CF8B2E211 for ; Mon, 6 Dec 2021 20:54:20 +0100 (CET) Received: from localhost ([::1]:53732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muK43-0000fu-FQ for larch@yhetil.org; Mon, 06 Dec 2021 14:54:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muK3m-0000NK-7D for guix-patches@gnu.org; Mon, 06 Dec 2021 14:54:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muK3l-000532-Tb for guix-patches@gnu.org; Mon, 06 Dec 2021 14:54:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1muK3l-00059k-NZ for guix-patches@gnu.org; Mon, 06 Dec 2021 14:54:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52238] [PATCH] gnu: Add MEGA SDK Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Dec 2021 19:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52238 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jaft , 52238@debbugs.gnu.org Received: via spool by 52238-submit@debbugs.gnu.org id=B52238.163882038919753 (code B ref 52238); Mon, 06 Dec 2021 19:54:01 +0000 Received: (at 52238) by debbugs.gnu.org; 6 Dec 2021 19:53:09 +0000 Received: from localhost ([127.0.0.1]:35498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muK2u-00058X-Tu for submit@debbugs.gnu.org; Mon, 06 Dec 2021 14:53:09 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muK2s-000588-QA for 52238@debbugs.gnu.org; Mon, 06 Dec 2021 14:53:07 -0500 Received: by mail-wr1-f68.google.com with SMTP id c4so24689623wrd.9 for <52238@debbugs.gnu.org>; Mon, 06 Dec 2021 11:53:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=lP9COt0rLnlZ+XCCQb1nk4gGAh1DAwiRqdgVmmZ5oOA=; b=gjCOWZ+N4h47V8YgbDAxnbVmgtt1lRHMiTGBznmv2ZHS3/ssL3yMMrGUbCSgZSJy5e pYc27Qt2rdO3pIAzSF/uPiv6etnJLED7ZW9SDweck1LKHyRGo2scaaQXHPg6palgZQV1 3qTOrcCkmrl5FQyGWznUhek9iwqmh0lQ/0L4hj/LVfNP60VibwZP10je87P6MmKxC4OV SX8IM4TpgxhFnvcG7MxKb9+UkGsQ4ITOmHYl8rF9I+vRBkznwbGavVa3vXJlRFtTd7Ux eW/r5qZJrJyAF8LfXGrg3naC/st1yEaJjDwQo9E+A1SetL7lV+Sy8dTJFVoduG75jesB XIBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=lP9COt0rLnlZ+XCCQb1nk4gGAh1DAwiRqdgVmmZ5oOA=; b=bFbVddkXsxb4xV+PMlaG9Hk8863DB0TntqSSmPHDFGAcZuFMl/wFUjuAW27syILUit rg9aN0DrdStNp7bkkGZcSnt4hZBL2kvjjK0mK/MyCnDVfh8ZsjvKCE58Zx8RxhnDY1Gn ByLZtqSSrmAtGId2SYZRDh3oKvlk0b2o/+0P+ODPRTSyDt3z9QkUPZ/Qkp+PsnaZizAu 3EvZTCwAXRyBepwyVivxKFX7ODr7WMiKjgnjUWYzzUvMltxuOMx5JWIAtbF6zWkL8ScV H7SnJA7yHEp2AzG/Xolf9wKt0ZWWuIh2BSnAf7dCCiMaWAgGx6RrdlGtZ/2IAllTysKM stwg== X-Gm-Message-State: AOAM5330Sc8XNNpFc8ZaRqSr00G/yHHhfeInZ+zfQ/bbGZpibPI8NpcG PcGN3uQys92YBp+vjgl9vfQ= X-Google-Smtp-Source: ABdhPJx/P/2y+8hVkZIdVgx7ZQyKZ0RkRfYML+oal3n9MyawPxGqYhtot59RYdcJbePYPiY5SNsHyw== X-Received: by 2002:adf:f708:: with SMTP id r8mr45726827wrp.198.1638820380944; Mon, 06 Dec 2021 11:53:00 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id l3sm345458wmq.46.2021.12.06.11.53.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 11:53:00 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Mon, 06 Dec 2021 20:52:59 +0100 In-Reply-To: References: <1136809883.7440498.1638426746315.ref@mail.yahoo.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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=1638820460; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=lP9COt0rLnlZ+XCCQb1nk4gGAh1DAwiRqdgVmmZ5oOA=; b=B7p1Wu53jPtZYJr9ONkt8Jj7VfNqqUmBWU/HeVjgyPbBjergjkzi6hUYoSAQVbeHyu5BkR 4n3J88ole1xC9fRPRxkk4Tb0ggtU7szuQaKJPvMzzqRHi6LxL6f7Cs+Utl9KHlGWgSDYXs Wzv5KqZw5JUPqyHszczY7cotLEPfEC5m+hk3Trp+GQIqtkh0ihzg6iaoWumCOchpTNAvGy dadbT3L/XKFh6DEBYzgxnVB5I1jt0eHLzb34U4xZhZEPBvij7DNcimnYz2T9lcdQ4jxWTC /RVSy/OdWYbWRLBuDNmHUzhOj88TmlKH+SZjz3kvus4C1Cj7aBinz4HlDZn8PA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638820460; a=rsa-sha256; cv=none; b=oLD7GdrqFf75TgU6Chm+quhs+cfJ/BcgikOwedd26jLec5FkXQ5j+6RdOfZbJfvQCq8PDp 0bFAzebtlYnykkd+n6RHHetXkD+CplOs8vD/34P0oj2Q4SiuVb+eX8i90yq2V9c5F0IXxh xcDF+vjUAFd3fEJgNvY1ntylvL1J/wng99ApjvnAEV3hBlBbY8U03z5e5btnK9dfxLi3MP 2Jd5yArrFnKYEedCV0gNH9TB+CziavM02EZeem8v3CUdLSM9D6g35CF4GrtpYjeEsMJpgh wwph6qi2BsrnK2gD5/vpS4zykf0926NE9LUmWyzZUdwI6DjldoeyAMo0Lgw2wA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gjCOWZ+N; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gjCOWZ+N; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 4CF8B2E211 X-Spam-Score: -1.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: gZLttJN3W9mm Am Donnerstag, den 02.12.2021, 06:32 +0000 schrieb Jaft: > * gnu/packages/mega.scm (mega-sdk):Add MEGA SDK Should be "New variable." > The SDK is a dependency of MEGAsync so I thought to make a new file > since there's multiple packages that are MEGA related and then I > discovered that the megacmd package exists; is it better for this to > be placed in sync.scm, next to megacmd? Sync is good. If existing Mega packages use the SDK, try to unbundle them. > --- I don't know if I told you that yet, but comments ought to go below this line. > +(define-public mega-sdk > +=C2=A0 (let ([version "3.9.10"]) > +=C2=A0=C2=A0=C2=A0 (package > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (name "mega-sdk") I hate you too, Outlook. > +(define-public mega-sdk > + (let ([version "3.9.10"]) Guile is not Racket, we use uniform brackets. > + (package > + (name "mega-sdk") > + (version version) There's no reason to let-bind version if you're just going to assign it here anyway. > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/meganz/sdk/") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 (base32 > + > "08qw23rm4rrvlsbcixrncbi5x0qgqkpx74l5f1gq2rgll0ksx8ph")) > + (modules '((guix build utils))))) > + (build-system gnu-build-system) > + (native-inputs `(("autoconf" ,autoconf) > + ("automake" ,automake) > + ("libtool" ,libtool))) > + (inputs `(("crypto++" ,crypto++) > + ("zlib" ,zlib) > + ("sqlite" ,sqlite) > + ("openssl" ,openssl) > + ("c-ares" ,c-ares) > + ("curl" ,curl) > + ("freeimage" ,freeimage) > + ("readline" ,readline) > + ("libsodium" ,libsodium))) > + (arguments `(#:tests? #f)) Never leave #:tests? #f uncommented. > + (home-page "https://mega.nz/sdk") > + (synopsis "SDK for the MEGA service, offered by MEGA Limited") Sponsored by RAID: Shadow Legends. > + (description "A low-level SDK for the MEGA service which > powers the > +file-sharing site. This package provides two executables: > +@itemize > +@item megacli: a command-line tool that allows usage of all SDK > features > +@item megasimplesync: a command line tool that allows usage of the > +synchronization engine > +@end itemize") > + (license license:bsd-2)))) Given the megacli command, what's the relation to existing MEGA packages, particularly megacmd? Cheers