Message ID | 20220419233214.275789-6-philip@philipmcgrath.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1DB1C27BBEA; Wed, 20 Apr 2022 00:36: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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS 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 D9E2F27BBE9 for <patchwork@mira.cbaines.net>; Wed, 20 Apr 2022 00:36:11 +0100 (BST) Received: from localhost ([::1]:44250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1ngxOF-0005lf-0i for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ngxMC-0003b1-DK for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ngxMB-0001x1-MV for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ngxMB-00061l-Jz for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 06/30] gnu: Add elm-virtual-dom. Resent-From: Philip McGrath <philip@philipmcgrath.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:03 +0000 Resent-Message-ID: <handler.55030.B55030.165041120422989@debbugs.gnu.org> 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: Philip McGrath <philip@philipmcgrath.com> Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041120422989 (code B ref 55030); Tue, 19 Apr 2022 23:34:03 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:24 +0000 Received: from localhost ([127.0.0.1]:44439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1ngxLX-0005yi-GL for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:24 -0400 Received: from mail-vs1-f54.google.com ([209.85.217.54]:40701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <philip@philipmcgrath.com>) id 1ngxLV-0005y4-RH for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:22 -0400 Received: by mail-vs1-f54.google.com with SMTP id v133so36566vsv.7 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:21 -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=95xM95eUEwEqu7+Zq/UPnKeOMrhO+CU4NiXC+C29qFg=; b=CRwk/M5neOVjqB4ZTgQngkZrPxzp9zmShb5ulEj8C3e07M1At8U/C9BjtWzl74lldf kUUOWFVBKCugogmcv3+kveEgLo2fOH3ePqwQre8v7ikoi+EEE1CTd7gcoZwQLutZ9cB6 t0C/eELQqFmpQwlO1r7HwOYzMBLPa1I1RLl/ugcG1UUYc43iJkBERi2un9gecXioA/da Vm+FvUMhfXIhRSDsG6sA+OF+q+K6PiZY3/Xl3QZrMhwtkNwk+HcRrvagec9OJCw9EzIa PGVduXaqhtki8Lj3lbQJxidJd529ytHp/+jOUvIKb6nQUyaq8Dl9Y1gYe6K/H2XRborF aE1A== 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=95xM95eUEwEqu7+Zq/UPnKeOMrhO+CU4NiXC+C29qFg=; b=c1BQwhe/baE6bgow6ZFr/MIslLOHBHEIu0ox4yZFoDc6MmfSsYMgALo+qHQ+D75r7w OwXqs9977P4DXVWZaS/BD67DtRZ6OTxYQxuAsUrdqbAuVKTG8QSN4WWutOr6WYad2URI kmCnu2T+5ESMDOidbBFOYqsq5ndZlKrqadITIKyAvYn3qr3OKCu5dNry7GAWGlt9Yw/p Nb8lGB8UThjlsycpuWMTzlpBN45fTNkptLnDDDp/m7nQOuhcM4wSolkfRQ5Icm2owYuf w3QFRsy4AYDf2llMKWe2jrYGGCDxjDoed2bETpcFOfr9+tjL+El7B1jl6ZLexQIvPuhJ FF7w== X-Gm-Message-State: AOAM531tHhwwTjnjzbD4puLUVqaftodWbvD5yL93SmuiE2hTE0DZpeAN a78uDD8cZxV0NKo9V+lftBRwGNkPlf/xHDXh X-Google-Smtp-Source: ABdhPJw608qQasxl3ryfMxnmuRy4Z23NjnDXQ1sLIlYJ7yQV8NpAnbLtjmg/rB1wnH9/sbzzsgFJRA== X-Received: by 2002:a05:6102:3d04:b0:329:88fa:94d2 with SMTP id i4-20020a0561023d0400b0032988fa94d2mr4210502vsv.64.1650411196450; Tue, 19 Apr 2022 16:33:16 -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 q12-20020a056102204c00b0032a32371f12sm188227vsr.7.2022.04.19.16.33.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:15 -0700 (PDT) From: Philip McGrath <philip@philipmcgrath.com> Date: Tue, 19 Apr 2022 19:31:50 -0400 Message-Id: <20220419233214.275789-6-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220419233214.275789-1-philip@philipmcgrath.com> References: <20220419232736.272970-1-philip@philipmcgrath.com> <20220419233214.275789-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
gnu: elm: Update to 0.19.1. Add build system & importer.
|
|
Commit Message
Philip McGrath
April 19, 2022, 11:31 p.m. UTC
* gnu/packages/elm.scm (elm-virtual-dom): New variable. --- gnu/packages/elm.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
Comments
Philip McGrath <philip@philipmcgrath.com> skribis: > + (package > + (name "elm-virtual-dom") [...] > + (properties '((upstream-name . "elm/virtual-dom"))))) Could/should the importer infer the upstream name from the Guix name by default? That way, we’d only need to specify that property where the automatic Guix->upstream name mapping wouldn’t work.
Hi, On 5/1/22 16:37, Ludovic Courtès wrote: > Philip McGrath <philip@philipmcgrath.com> skribis: > >> + (package >> + (name "elm-virtual-dom") > > [...] > >> + (properties '((upstream-name . "elm/virtual-dom"))))) > > Could/should the importer infer the upstream name from the Guix name by > default? > > That way, we’d only need to specify that property where the automatic > Guix->upstream name mapping wouldn’t work. It could, but the heuristics seemed a bit brittle. To pick a few examples: 1. elm-virtual-dom -> "elm/virtual-dom" 2. elm-explorations-markdown -> "elm-explorations/markdown" 2. elm-terezka-intervals -> "terezka/intervals" We could add a special case for the "elm-explorations/*" namespace, but at least one of the others would need an explicit property. I *think* most of the packages in the "elm/*" namespace are single-element (e.g. "elm/html"), so maybe we could require the property for e.g. "elm/virtual-dom" and "elm/project-metadata-utils" ... -Philip
diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index b61d238cff..af12804301 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -155,3 +155,24 @@ (define-public elm-json-bootstrap (delete 'build) (delete 'validate-compiled)) #:implicit-elm-package-inputs? #f))))) + +(define-public elm-virtual-dom + (package + (name "elm-virtual-dom") + (version "1.0.2") + (source + (elm-package-origin + "elm/virtual-dom" + version + (base32 "1d6pqv6cvrsk2cp3dxxrq82vwrij4hrgjazg3lh93z75jkpvywhl"))) + (build-system elm-build-system) + (propagated-inputs (list elm-json elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/virtual-dom/1.0.2") + (synopsis + "Elm's low-level virtual DOM implementation") + (description + "This package provides a virtual DOM implementation that backs Elm's +core libraries for HTML and SVG. You should almost certainly use those +higher-level libraries directly.") + (license license:bsd-3) + (properties '((upstream-name . "elm/virtual-dom")))))