From patchwork Wed May 18 18:10:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 39474 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 09B1227BBEB; Wed, 18 May 2022 19:14:02 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 BC38127BBE9 for ; Wed, 18 May 2022 19:14:01 +0100 (BST) Received: from localhost ([::1]:36086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrOBM-0007lQ-TQ for patchwork@mira.cbaines.net; Wed, 18 May 2022 14:14:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrOAS-0007jh-FN for guix-patches@gnu.org; Wed, 18 May 2022 14:13:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrOAS-0005Db-6n for guix-patches@gnu.org; Wed, 18 May 2022 14:13:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrOAS-0006Lm-2B for guix-patches@gnu.org; Wed, 18 May 2022 14:13:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH v2 04/34] gnu: Add elm-core and elm-json. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 May 2022 18:13:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55030 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55030@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165289755224216 (code B ref 55030); Wed, 18 May 2022 18:13:04 +0000 Received: (at 55030) by debbugs.gnu.org; 18 May 2022 18:12:32 +0000 Received: from localhost ([127.0.0.1]:33483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrO9v-0006IQ-Si for submit@debbugs.gnu.org; Wed, 18 May 2022 14:12:32 -0400 Received: from mail-vs1-f47.google.com ([209.85.217.47]:36582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrO9q-0006HS-4P for 55030@debbugs.gnu.org; Wed, 18 May 2022 14:12:26 -0400 Received: by mail-vs1-f47.google.com with SMTP id a127so2931317vsa.3 for <55030@debbugs.gnu.org>; Wed, 18 May 2022 11:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A40wEgFKKY9lYeWzxj9PYAKWwU0RVrK9CMU3xjzroE4=; b=duuhDif1zXaTlOACA7J8sP3KSh9rLlF4auoeT7FHnKWvsfOPBSSuZxew6nhLC1LHie biDT1V6MsFicclXBOYHkNGt6NntsYsaZ2B6+kRjWOOWAYVKEv29Ru8l493oUGKTyt56E 2xXGZ2MDpDUmtz3QQ1BqQcgqerd9Jll7MPvkEFBOzILJgSixvKNUtrJvvSOqk4bSxU5p RTP/ylWOxRjRNEoOYp531VviWQ/L5PgO3N9AP04wBhvKR7oTeE586zORPoRRgThcXJf7 IPehBJbi4TWOmjwzTN5gRH1JiNkn2yCyH+AN0jgnmMifzMW9hhtoE+8/Am+RJegW4px4 rggQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A40wEgFKKY9lYeWzxj9PYAKWwU0RVrK9CMU3xjzroE4=; b=tXE9lxG6hyf/4tvm9I2aOTSqRMVgta5nhRn4CkN4oHJYWNuyUZY6JvgWVx40sG3ccA L39GtLvVLNkXPAzC11M93DU7Vz6uoL4T2ejhYZ/GQL3TgFx2LwQ0KmbVAfoWIYgu4McU wfDaknpS+CucJJ6Z297zXJg5vmLMEnS3WAeGWZTRW03WuFhOj4lavJpaxj33bZa4682v guvq2KlpFTofDLHwnX54XDtTpatgf01l6JH5eWPVyZ0iIPznSF7Isq1rWUkpsVZ1RJDz vZUBOw80U9EX2t+MQ+MuntC3gZn6KQJtrn4y98zhXER6QvwQx0xFB33TC7yjhwJNbsAV mvZg== X-Gm-Message-State: AOAM531IBcIciUjZUd6vOtsdbApHr9+Vzyy8ciKLEvh1ByI4ZBleghQM LYgpv7F1sdY8UVUNCJND/1OPrMqolYiMWnTN X-Google-Smtp-Source: ABdhPJxdCT30ghCkeTsPsRmEvgWvIdzKr6mixsWXorpDiidexjwbA9GPCsYkZOKBq7WlYYjUBO1+jA== X-Received: by 2002:a67:f547:0:b0:32c:dedd:a0b2 with SMTP id z7-20020a67f547000000b0032cdedda0b2mr646734vsn.39.1652897540411; Wed, 18 May 2022 11:12:20 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id e9-20020a056102310900b00335b911757csm254098vsh.26.2022.05.18.11.12.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 May 2022 11:12:18 -0700 (PDT) From: Philip McGrath Date: Wed, 18 May 2022 14:10:51 -0400 Message-Id: <44d6846eec4e21cb7016e64b6d9cc52ae101e511.1652890702.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: <20220419232736.272970-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Both of these packages are needed for 'elm-build-system' to work. * gnu/packages/elm.scm (elm-core, elm-json, elm-json-bootstrap): New variables. --- gnu/packages/elm.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 35bdcc65f5..4ad3a000cb 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -103,3 +103,58 @@ (define-public elm ;; The 'elm' package used to be called 'elm-compiler'. (define-public elm-compiler (deprecated-package "elm-compiler" elm)) + +(define-public elm-core + (package + (name "elm-core") + (version "1.0.5") + (source + (elm-package-origin + "elm/core" + version + (base32 "0g3xbi8f9k5q45s95nx3jfvzwdf4b2n63a52wr4027d2xjx0pmvl"))) + (build-system elm-build-system) + (inputs (list elm-json-bootstrap)) + (arguments + (list #:implicit-elm-package-inputs? #f)) + (home-page "https://package.elm-lang.org/packages/elm/core/1.0.5") + (synopsis "Elm's standard libraries") + (description "Every Elm project needs this package!") + (license license:bsd-3))) + +(define-public elm-json + (package + (name "elm-json") + (version "1.1.3") + (source + (elm-package-origin + "elm/json" + version + (base32 "1hx986yqw1v2bpkrh6brszl8n8awwg1s8zi7v5qg0p1rqwvjlicz"))) + (build-system elm-build-system) + (propagated-inputs (list elm-core)) + (arguments + (list #:implicit-elm-package-inputs? #f)) + (home-page "https://package.elm-lang.org/packages/elm/json/1.1.3") + (synopsis "Encode and decode JSON values in Elm") + (description + "This package helps you convert between Elm values and JSON values.") + (license license:bsd-3))) + +(define-public elm-json-bootstrap + ;; elm/core doesn't depend on elm/json, + ;; but elm-build-system's strategy for building it + ;; (and everything else) does + (hidden-package + (package + (inherit elm-json) + (name "elm-json-bootstrap") + (properties '((upstream-name . "elm/json"))) + (propagated-inputs '()) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (delete 'validate-compiled)) + #:implicit-elm-package-inputs? #f)))))