From patchwork Tue Oct 27 21:12:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Eisses X-Patchwork-Id: 24838 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 8545027BBF3; Wed, 28 Oct 2020 00:53:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C573127BBF2 for ; Wed, 28 Oct 2020 00:53:41 +0000 (GMT) Received: from localhost ([::1]:47426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXZie-0001hA-Sn for patchwork@mira.cbaines.net; Tue, 27 Oct 2020 20:53:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXXn0-0002V7-RM for guix-patches@gnu.org; Tue, 27 Oct 2020 18:50:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXXn0-0007jI-HZ for guix-patches@gnu.org; Tue, 27 Oct 2020 18:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXXn0-0004C8-FP for guix-patches@gnu.org; Tue, 27 Oct 2020 18:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44269] [PATCH] gnu: Add eosio-cdt. Resent-From: jesse@unraveled.tech Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Oct 2020 22:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44269 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44269@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160383898516091 (code B ref -1); Tue, 27 Oct 2020 22:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Oct 2020 22:49:45 +0000 Received: from localhost ([127.0.0.1]:46333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXXmi-0004BT-Qi for submit@debbugs.gnu.org; Tue, 27 Oct 2020 18:49:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:48452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXWH9-00085z-AU for submit@debbugs.gnu.org; Tue, 27 Oct 2020 17:13:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXWH9-0006cJ-5u for guix-patches@gnu.org; Tue, 27 Oct 2020 17:13:03 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:43393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXWH5-0002k0-Vp for guix-patches@gnu.org; Tue, 27 Oct 2020 17:13:02 -0400 Received: by mail-ej1-x62b.google.com with SMTP id k3so4219224ejj.10 for ; Tue, 27 Oct 2020 14:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unraveled-tech.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=+W7JtzUjclf752tmGQTlBiNOsnPnLzpWqY28OGJbR0k=; b=sj57YTxJF2jZg+Uoy/9mglQ4y600CYtHerLpUTBwogkafAInMd0ALOnsx3/SSKt89X yAqeOQFPM6Pv1B0K8dXQfcghOuFnMsvmGj4POzlwRhzQzk8iSJinUqbmIrZk7lY45GEd nNY9LBR0xBrTN30KkOzSoZFIe+PDv8fAfSC3A91Ei8vJk7rtCLFVebhEPze/pnY/Mqde B+wIh9hSHkdfkhgcz90tpCb7rS3jqM/SvNpZxKu3rUO0DkkiPPlcPW4eEe1tEJ1D5sGu kj8yuTnCqHG90wpw2MYQ0/XRCMykkHrC22fDTIxTWT73fPe6bYLtbinbwR+UqQ7RFoWR gLCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=+W7JtzUjclf752tmGQTlBiNOsnPnLzpWqY28OGJbR0k=; b=b7cl7FOscaQ7i2naDeEQ1pcC+HZv4e2Vl2qdqumzL/zCeta/xUGT3CmxicbGFtXrRV qNlmMbQIJzouLKrchsx8SmJiA9LVyUsu222lWl1Y8dnetHhtaYEbGYQail9kpua07Ymb MUUAcX5UprMA944htPG5ShP1Ho1YVaTTTnes9yqNfpOa34QouRe83cWfzRAON74c+66E OFuLFgAtwl1037+Fvp+GfYQ7novuqF+eL87b82QD+f6OcNIKsRZgAjWBj778g63M3BzE fRuKYDBqJEaGly4SW10eyVHtZaLWNIi5HvJPy1GFQ7iXfd6SVJCIZu521NVGy5edPc7Q Q8OQ== X-Gm-Message-State: AOAM533Xw6GPYiTyYbZ5cwLIxiQPyxeiR623vVoh0Tb/y5FkWiaj0M4V tFi7dVcP7/aiWR4xl52G4mrnQrP3hNYRG98g X-Google-Smtp-Source: ABdhPJwRtgqV+gA437TTpM2mwgzjeecByUILIOztUr1aOYz/r4qXN99fHzb3tZmoYhEbx2l6OcYOvw== X-Received: by 2002:a17:906:3bc7:: with SMTP id v7mr4214824ejf.245.1603833177259; Tue, 27 Oct 2020 14:12:57 -0700 (PDT) Received: from localhost.localdomain (c26075.upc-c.chello.nl. [212.187.26.75]) by smtp.gmail.com with ESMTPSA id yw17sm1695163ejb.97.2020.10.27.14.12.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 14:12:56 -0700 (PDT) From: jesse@unraveled.tech Date: Tue, 27 Oct 2020 22:12:46 +0100 Message-Id: <20201027211246.573113-1-jesse@unraveled.tech> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Received-SPF: none client-ip=2a00:1450:4864:20::62b; envelope-from=jesse@unraveled.tech; helo=mail-ej1-x62b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 27 Oct 2020 18:49:44 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 27 Oct 2020 20:53:28 -0400 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 Hi all! This is my first patch, I hope I'm doing it correctly. The patch below adds the Contract Development Toolkit (compiler) for smart contracts on the EOS blockchain. I also have a package for EOS itself that is a bit more involved, so I'll submit separately. Total package size is 607MB of which self is 329MB. It takes a while to compile (about an hour on my i7 laptop). Any feedback is appreciated. Thanks. Jesse --- gnu/packages/finance.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 4397cf8ba8..0e661c4b56 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -59,6 +59,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages crypto) #:use-module (gnu packages curl) + #:use-module (gnu packages cmake) #:use-module (gnu packages databases) #:use-module (gnu packages docbook) #:use-module (gnu packages documentation) @@ -96,6 +97,7 @@ #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages upnp) + #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages gnuzilla)) @@ -547,6 +549,39 @@ generation from a seed. Your secret keys are encrypted and are never sent to other machines/servers. Electroncash does not download the Bitcoin Cash blockchain.") (license license:expat))) +(define-public eosio-cdt + (package + (name "eosio-cdt") + (version "1.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference (url "https://github.com/EOSIO/eosio.cdt") + (commit (string-append "v" version)) + (recursive? #t))) + (sha256 + (base32 + "1mrc8dn7sf086456c63rlha4j3fh0g1a59dbd6in6nyhan712xps")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (native-inputs + `(("git" ,git) + ("doxygen" ,doxygen) + ("pkg-config" ,pkg-config) + ("curl" ,curl))) + (inputs + `(("gmp" ,gmp) + ("openssl" ,openssl) + ("python" ,python-3))) + (arguments + `(#:build-type "Release")) + (home-page "https://developers.eos.io/manuals/eosio.cdt/latest/index") + (synopsis "EOSIO.CDT is a suite of tools used to build EOSIO contracts") + (description + "EOSIO.CDT is a toolchain for WebAssembly (WASM) and set of tools to +facilitate smart contract development for the EOSIO platform.") + (license license:expat))) + (define-public monero ;; This package bundles easylogging++ and lmdb. ;; The bundled easylogging++ is modified, and the changes will not be