From patchwork Tue Apr 19 23:31:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38670 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 2C25527BBEA; Wed, 20 Apr 2022 00:33:37 +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 0D41927BBE9 for ; Wed, 20 Apr 2022 00:33:36 +0100 (BST) Received: from localhost ([::1]:41040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxLj-0003Jl-6y for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:33:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxLB-0003JQ-W3 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxLB-0001sr-MR for guix-patches@gnu.org; Tue, 19 Apr 2022 19:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxLB-0005xD-J4 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 01/30] gnu: elm-compiler: Update to 0.19.1. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:33:01 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041117922874 (code B ref 55030); Tue, 19 Apr 2022 23:33:01 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:32:59 +0000 Received: from localhost ([127.0.0.1]:44423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxL1-0005wf-Qp for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:32:59 -0400 Received: from mail-vs1-f54.google.com ([209.85.217.54]:46757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxKz-0005wR-Ql for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:32:50 -0400 Received: by mail-vs1-f54.google.com with SMTP id b128so16986vsc.13 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:32:49 -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=HwzclTGL+yXB+JUD0bhutc8NXH7Ym+6fKhe/Hd6Ldek=; b=Y4oHHhwUnOnc15EARvd7ynX9Eucjyw2OG/ra3slPEfASUMf9S7jU1acIcZMSPgKPLH 0+KwcovDe/pP8h+ivnyxGDES9qSPlnw0xcDARPcCNd75L7PcSwWd2MWnN2Ht11UgxMZp kjIGw4hvmcIjdWQ+ENZ3g95RFJl5WEsVEfkvBLFQURbTuzFKR5uG8rwevTy3PZIuwhGz QmF08ATyw/mUOyz+wTKH4T6ap9UFUFRVBePzPwWQf8ETSqvn+foXvJ1aybUC3ej9hLYj yCmsr7nH0wJPqRdnUyw/EO28uWrzefNSmYiSRGQYSkhN8zxoYaP8MEJBOA+YFyH5yQqf P58Q== 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=HwzclTGL+yXB+JUD0bhutc8NXH7Ym+6fKhe/Hd6Ldek=; b=OatWUgtwym8toHuHoo0T3hukVN3M8lKipjkKGRkhLPOrA24YThQYzLujr5jvMv/BYd oihKad5E/BAml94mhP/5hcnhPNcPhPQxIvOX1IC4iTArPcRN9YYKJIRjeU+29y7Rw01c UhRYbRPTPbdbKbGCFyLh8h9wCsIW1YCVI/BM9Idte6Bby6J/IWoUpZJIndbZfBezBxEs ugSK0VDNHiYfDKVSU8BRgA+S2PL1kU+c52PCYsBDyiQLQfy97wJOuzooJ06jJUNDFDP2 3KZLaylL8pG9RxW//XPi9+soEcVw7CtwRpnsMEOTsnD8uzwiup1kfLSkbGi/Hharg7BI 6q/A== X-Gm-Message-State: AOAM5313fgrskQyl/L2A5TltOfWlq0sAnJwUANJjv3+HCkpP1P1poy6Z 3zle3p24SCvEMKUSHy3n1XcT/9HPlk8hqez+ X-Google-Smtp-Source: ABdhPJxwoIr/0O6jr6i4vR46tC+LE7qEYui0GotrQlkbaUs7Vy2+4u82JIGdUTX665gD2h19y9Y17g== X-Received: by 2002:a67:b607:0:b0:32a:1dfa:3fdd with SMTP id d7-20020a67b607000000b0032a1dfa3fddmr5728310vsm.55.1650411163871; Tue, 19 Apr 2022 16:32:43 -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 o11-20020ab0150b000000b0035ccb91e501sm170372uae.36.2022.04.19.16.32.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:32:43 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:45 -0400 Message-Id: <20220419233214.275789-1-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220419232736.272970-1-philip@philipmcgrath.com> 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 * gnu/packages/patches/elm-compiler-disable-reactor.patch, gnu/packages/patches/elm-compiler-fix-map-key.patch: Delete files. * gnu/packages/patches/elm-reactor-static-files.patch: New file. * gnu/local.mk (dist_patch_DATA): Update accordingly. * gnu/packages/elm.scm (elm-compiler): Update to 0.19.1. [origin]: Remove stale patches. Add new patch. [arguments]: Use G-expressions. Add #:configure-flags for new patch. [inputs]: Remove ghc-file-embed. Add ghc-filelock. --- gnu/local.mk | 3 +- gnu/packages/elm.scm | 42 +-- .../elm-compiler-disable-reactor.patch | 71 ----- .../patches/elm-compiler-fix-map-key.patch | 38 --- .../patches/elm-reactor-static-files.patch | 251 ++++++++++++++++++ 5 files changed, 278 insertions(+), 127 deletions(-) delete mode 100644 gnu/packages/patches/elm-compiler-disable-reactor.patch delete mode 100644 gnu/packages/patches/elm-compiler-fix-map-key.patch create mode 100644 gnu/packages/patches/elm-reactor-static-files.patch diff --git a/gnu/local.mk b/gnu/local.mk index 0e721236d9..2af4d018ba 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1024,8 +1024,7 @@ dist_patch_DATA = \ %D%/packages/patches/einstein-build.patch \ %D%/packages/patches/elfutils-tests-ptrace.patch \ %D%/packages/patches/elixir-path-length.patch \ - %D%/packages/patches/elm-compiler-disable-reactor.patch \ - %D%/packages/patches/elm-compiler-fix-map-key.patch \ + %D%/packages/patches/elm-reactor-static-files.patch \ %D%/packages/patches/elogind-revert-polkit-detection.patch \ %D%/packages/patches/emacs-exec-path.patch \ %D%/packages/patches/emacs-fix-scheme-indent-function.patch \ diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index ca7c61041b..708c1cf0d2 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Robert Vollmert +;;; Copyright © 2022 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,18 +25,22 @@ (define-module (gnu packages elm) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-web) #:use-module (guix build-system haskell) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)) -;; The full elm build calls out to itself via Template Haskell to -;; compile the elm reactor web app. elm reactor isn't required to -;; compile elm applications, so we take this part out of this -;; bootstrap package. +;; The `elm` build usually calls out to itself via Template Haskell to compile +;; the `elm reactor` web app (which depends on additional Elm packages) and +;; embeds the static files into itself. The reactor isn't required to compile +;; elm applications, so we want to skip it from the bootstrap package, but we +;; also want to be able to enable it once we can build it. We patch Elm to +;; instead look for the files on disk relative to the executable and exit with +;; a useful error message if they aren't there. (define-public elm-compiler (package (name "elm-compiler") - (version "0.19.0") + (version "0.19.1") (source (origin (method git-fetch) @@ -44,24 +49,29 @@ (define-public elm-compiler (url "https://github.com/elm/compiler/") (commit version))) (sha256 - (base32 "0s93z9vr0vp5w894ghc5s34nsq09sg1msf59zfiba87sid5vgjqy")) + (base32 "1rdg3xp3js9xadclk3cdypkscm5wahgsfmm4ldcw3xswzhw6ri8w")) (patches - (search-patches "elm-compiler-disable-reactor.patch" - "elm-compiler-fix-map-key.patch")))) + (search-patches "elm-reactor-static-files.patch")))) (build-system haskell-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'configure 'update-constraints - (lambda _ - (substitute* "elm.cabal" - (("(ansi-terminal|containers|network|http-client|language-glsl)\\s+[^,]+" all dep) - dep))))))) + (list + #:configure-flags + #~(list (string-append "--ghc-option=-DGUIX_REACTOR_STATIC_REL_ROOT=" + "\"../share/elm/reactor-" + #$(package-version this-package) + "\"")) + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'update-constraints + (lambda _ + (substitute* "elm.cabal" + (("(ansi-terminal|containers|network|http-client|language-glsl)\\s+[^,]+" all dep) + dep))))))) (inputs (list ghc-ansi-terminal ghc-ansi-wl-pprint ghc-edit-distance - ghc-file-embed + ghc-filelock ghc-http ghc-http-client ghc-http-client-tls diff --git a/gnu/packages/patches/elm-compiler-disable-reactor.patch b/gnu/packages/patches/elm-compiler-disable-reactor.patch deleted file mode 100644 index 9871b55e8d..0000000000 --- a/gnu/packages/patches/elm-compiler-disable-reactor.patch +++ /dev/null @@ -1,71 +0,0 @@ -commit 20d80e2323b565a36751c9455e535d8f73fa32f7 -Author: Robert Vollmert -Date: Fri Jun 14 16:05:47 2019 +0200 - - disable reactor - -diff --git a/elm.cabal b/elm.cabal -index c75f9689..ece63c46 100644 ---- a/elm.cabal -+++ b/elm.cabal -@@ -45,9 +45,6 @@ Executable elm - builder/src - ui/terminal/src - -- other-extensions: -- TemplateHaskell -- - Main-Is: - Main.hs - -@@ -56,8 +53,6 @@ Executable elm - Develop - Develop.Generate.Help - Develop.Generate.Index -- Develop.StaticFiles -- Develop.StaticFiles.Build - Diff - Init - Install -diff --git a/ui/terminal/src/Develop.hs b/ui/terminal/src/Develop.hs -index 4b2252e1..7ed7716e 100644 ---- a/ui/terminal/src/Develop.hs -+++ b/ui/terminal/src/Develop.hs -@@ -23,7 +23,6 @@ import Snap.Util.FileServe - import qualified Elm.Project as Project - import qualified Develop.Generate.Help as Generate - import qualified Develop.Generate.Index as Index --import qualified Develop.StaticFiles as StaticFiles - import qualified Generate.Output as Output - import qualified Json.Encode as Encode - import qualified Reporting.Exit as Exit -@@ -219,16 +218,7 @@ compileToHtmlBuilder mode file = - - - serveAssets :: Snap () --serveAssets = -- do file <- getSafePath -- case StaticFiles.lookup file of -- Nothing -> -- pass -- -- Just (content, mimeType) -> -- do modifyResponse (setContentType (mimeType <> ";charset=utf-8")) -- writeBS content -- -+serveAssets = pass - - - -- MIME TYPES -diff --git a/ui/terminal/src/Main.hs b/terminal/src/Main.hs -index 7000f3ca..2c76965a 100644 ---- a/ui/terminal/src/Main.hs -+++ b/ui/terminal/src/Main.hs -@@ -39,7 +39,6 @@ main = - complex intro outro - [ repl - , init -- , reactor - , make - , install - , bump diff --git a/gnu/packages/patches/elm-compiler-fix-map-key.patch b/gnu/packages/patches/elm-compiler-fix-map-key.patch deleted file mode 100644 index 4f05ded530..0000000000 --- a/gnu/packages/patches/elm-compiler-fix-map-key.patch +++ /dev/null @@ -1,38 +0,0 @@ -commit e3512d887df41a8162c3e361171c04beca08415b -Author: Tom Stejskal -Date: Mon Nov 19 20:09:43 2018 +0100 - - Fix Map.!: given key is not an element in the map - -diff --git a/compiler/src/Elm/Compiler/Type/Extract.hs b/compiler/src/Elm/Compiler/Type/Extract.hs -index 1aafe1d4..99763392 100644 ---- a/compiler/src/Elm/Compiler/Type/Extract.hs -+++ b/compiler/src/Elm/Compiler/Type/Extract.hs -@@ -10,6 +10,7 @@ module Elm.Compiler.Type.Extract - - - import Data.Map ((!)) -+import qualified Data.Map as Map - import qualified Data.Maybe as Maybe - import qualified Data.Set as Set - -@@ -134,11 +135,15 @@ extractUnion interfaces (Opt.Global home name) = - else - let - pname = toPublicName home name -- unions = I._unions (interfaces ! home) -+ maybeUnions = I._unions <$> Map.lookup home interfaces - in -- case I.toUnionInternals (unions ! name) of -- Can.Union vars ctors _ _ -> -- T.Union pname vars <$> traverse extractCtor ctors -+ case Map.lookup name =<< maybeUnions of -+ Just union -> -+ case I.toUnionInternals union of -+ Can.Union vars ctors _ _ -> -+ T.Union pname vars <$> traverse extractCtor ctors -+ Nothing -> -+ return $ T.Union pname [] [] - - - extractCtor :: Can.Ctor -> Extractor (N.Name, [T.Type]) diff --git a/gnu/packages/patches/elm-reactor-static-files.patch b/gnu/packages/patches/elm-reactor-static-files.patch new file mode 100644 index 0000000000..94c4aa0cd1 --- /dev/null +++ b/gnu/packages/patches/elm-reactor-static-files.patch @@ -0,0 +1,251 @@ +From 41d219a29b03f3114af7a0521c8b2dbbb487c3e1 Mon Sep 17 00:00:00 2001 +From: Philip McGrath +Date: Wed, 13 Apr 2022 18:45:58 -0400 +Subject: [PATCH] reactor: look for static files relative to executable + +Must built with `-DGUIX_REACTOR_STATIC_REL_ROOT="../path/to/reactor"`. + +This lets us build a version of Elm without the `elm reactor` for +bootstrapping, then simply put the files in place in the final package. +--- + elm.cabal | 2 +- + terminal/src/Develop.hs | 32 +++++++++++---- + terminal/src/Develop/StaticFiles.hs | 37 ++++++++++------- + terminal/src/Develop/StaticFiles/Build.hs | 50 ++++++++++++++--------- + 4 files changed, 79 insertions(+), 42 deletions(-) + +diff --git a/elm.cabal b/elm.cabal +index bf1cfcf0..93161072 100644 +--- a/elm.cabal ++++ b/elm.cabal +@@ -50,6 +50,7 @@ Executable elm + + other-extensions: + TemplateHaskell ++ CPP + + Main-Is: + Main.hs +@@ -211,7 +212,6 @@ Executable elm + containers >= 0.5.8.2 && < 0.6, + directory >= 1.2.3.0 && < 2.0, + edit-distance >= 0.2 && < 0.3, +- file-embed, + filelock, + filepath >= 1 && < 2.0, + ghc-prim >= 0.5.2, +diff --git a/terminal/src/Develop.hs b/terminal/src/Develop.hs +index 00339364..6855b03e 100644 +--- a/terminal/src/Develop.hs ++++ b/terminal/src/Develop.hs +@@ -33,6 +33,7 @@ import qualified Reporting.Exit as Exit + import qualified Reporting.Task as Task + import qualified Stuff + ++import System.Exit as SysExit + + + -- RUN THE DEV SERVER +@@ -45,13 +46,29 @@ data Flags = + + + run :: () -> Flags -> IO () +-run () (Flags maybePort) = ++run () flags = do ++ frontEnd <- StaticFiles.prepare ++ case frontEnd of ++ Right lookup -> ++ reallyRun lookup flags ++ Left missing -> ++ SysExit.die $ unlines ++ [ "The `reactor` command is not available." ++ , "" ++ , "On Guix, these files are needed for `elm reactor` to work," ++ , "but they are missing:" ++ , "" ++ , unlines (map (\pth -> " " ++ (show pth)) missing) ++ ] ++ ++reallyRun :: StaticFiles.Lookup -> Flags -> IO () ++reallyRun lookup (Flags maybePort) = + do let port = maybe 8000 id maybePort + putStrLn $ "Go to http://localhost:" ++ show port ++ " to see your project dashboard." + httpServe (config port) $ + serveFiles + <|> serveDirectoryWith directoryConfig "." +- <|> serveAssets ++ <|> serveAssets lookup + <|> error404 + + +@@ -169,16 +186,15 @@ compile path = + -- SERVE STATIC ASSETS + + +-serveAssets :: Snap () +-serveAssets = ++serveAssets :: StaticFiles.Lookup -> Snap () ++serveAssets lookup = + do path <- getSafePath +- case StaticFiles.lookup path of ++ case lookup path of + Nothing -> + pass + +- Just (content, mimeType) -> +- do modifyResponse (setContentType (mimeType <> ";charset=utf-8")) +- writeBS content ++ Just (fsPath, mimeType) -> ++ serveFileAs (mimeType <> ";charset=utf-8") fsPath + + + +diff --git a/terminal/src/Develop/StaticFiles.hs b/terminal/src/Develop/StaticFiles.hs +index 94ee72dc..3227d617 100644 +--- a/terminal/src/Develop/StaticFiles.hs ++++ b/terminal/src/Develop/StaticFiles.hs +@@ -2,7 +2,8 @@ + {-# LANGUAGE OverloadedStrings #-} + {-# LANGUAGE TemplateHaskell #-} + module Develop.StaticFiles +- ( lookup ++ ( prepare ++ , Lookup + , cssPath + , elmPath + , waitingPath +@@ -11,9 +12,7 @@ module Develop.StaticFiles + + import Prelude hiding (lookup) + import qualified Data.ByteString as BS +-import Data.FileEmbed (bsToExp) + import qualified Data.HashMap.Strict as HM +-import Language.Haskell.TH (runIO) + import System.FilePath (()) + + import qualified Develop.StaticFiles.Build as Build +@@ -26,20 +25,29 @@ import qualified Develop.StaticFiles.Build as Build + type MimeType = + BS.ByteString + ++type Lookup = FilePath -> Maybe (FilePath, MimeType) + +-lookup :: FilePath -> Maybe (BS.ByteString, MimeType) +-lookup path = ++prepare :: IO (Either [FilePath] Lookup) ++prepare = do ++ found <- Build.findReactorFrontEnd expectedFiles ++ return $ case found of ++ Left missing -> ++ Left missing ++ Right resolved -> ++ Right (mkLookup (HM.fromList resolved)) ++ ++mkLookup :: HM.HashMap FilePath (FilePath, MimeType) -> Lookup ++mkLookup dict path = + HM.lookup path dict + + +-dict :: HM.HashMap FilePath (BS.ByteString, MimeType) +-dict = +- HM.fromList +- [ faviconPath ==> (favicon , "image/x-icon") +- , elmPath ==> (elm , "application/javascript") +- , cssPath ==> (css , "text/css") +- , codeFontPath ==> (codeFont, "font/ttf") +- , sansFontPath ==> (sansFont, "font/ttf") ++expectedFiles :: [(FilePath, MimeType)] ++expectedFiles = ++ [ faviconPath ==> "image/x-icon" ++ , elmPath ==> "application/javascript" ++ , cssPath ==> "text/css" ++ , codeFontPath ==> "font/ttf" ++ , sansFontPath ==> "font/ttf" + ] + + +@@ -82,7 +90,7 @@ sansFontPath = + "_elm" "source-sans-pro.ttf" + + +- ++{- + -- ELM + + +@@ -121,3 +129,4 @@ sansFont = + favicon :: BS.ByteString + favicon = + $(bsToExp =<< runIO (Build.readAsset "favicon.ico")) ++-} +diff --git a/terminal/src/Develop/StaticFiles/Build.hs b/terminal/src/Develop/StaticFiles/Build.hs +index c61fae57..c39b08b0 100644 +--- a/terminal/src/Develop/StaticFiles/Build.hs ++++ b/terminal/src/Develop/StaticFiles/Build.hs +@@ -1,28 +1,39 @@ + {-# LANGUAGE OverloadedStrings #-} ++{-# LANGUAGE CPP #-} + module Develop.StaticFiles.Build +- ( readAsset +- , buildReactorFrontEnd ++ ( findReactorFrontEnd + ) + where + +- +-import qualified Data.ByteString as BS +-import qualified Data.ByteString.Builder as B +-import qualified Data.ByteString.Lazy as LBS +-import qualified Data.NonEmptyList as NE + import qualified System.Directory as Dir +-import System.FilePath (()) +- +-import qualified BackgroundWriter as BW +-import qualified Build +-import qualified Elm.Details as Details +-import qualified Generate +-import qualified Reporting +-import qualified Reporting.Exit as Exit +-import qualified Reporting.Task as Task +- +- +- ++import System.FilePath ((), takeDirectory) ++import System.Environment (getExecutablePath) ++import Data.Either as Either ++ ++reactorStaticRelRoot :: FilePath ++reactorStaticRelRoot = GUIX_REACTOR_STATIC_REL_ROOT ++ ++type Resolved a = (FilePath, (FilePath, a)) ++ ++findReactorFrontEnd :: [(FilePath, a)] -> IO (Either [FilePath] [Resolved a]) ++findReactorFrontEnd specs = do ++ exe <- getExecutablePath ++ let dir = takeDirectory exe reactorStaticRelRoot ++ dirExists <- Dir.doesDirectoryExist dir ++ files <- sequence (map (findFile dir) specs) ++ return $ case Either.lefts files of ++ [] -> ++ Right (Either.rights files) ++ missing -> ++ Left $ if dirExists then missing else [dir] ++ ++findFile :: FilePath -> (FilePath, a) -> IO (Either FilePath (Resolved a)) ++findFile dir (rel, rhs) = do ++ let abs = dir rel ++ exists <- Dir.doesFileExist abs ++ return $ if not exists then Left abs else Right (rel, (abs, rhs)) ++ ++{- + -- ASSETS + + +@@ -71,3 +82,4 @@ runTaskUnsafe task = + \\nCompile with `elm make` directly to figure it out faster\ + \\n--------------------------------------------------------\ + \\n" ++-} +-- +2.32.0 + From patchwork Tue Apr 19 23:31:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38672 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 6775527BBEB; Wed, 20 Apr 2022 00:34:20 +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 1C9CF27BBEA for ; Wed, 20 Apr 2022 00:34:20 +0100 (BST) Received: from localhost ([::1]:41446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxMR-0003d7-84 for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:34:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0003b0-Be for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMA-0001ww-8w for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxMA-00061I-3L for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 02/30] gnu: elm: Rename package to match the command. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:02 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041118222914 (code B ref 55030); Tue, 19 Apr 2022 23:34:02 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:02 +0000 Received: from localhost ([127.0.0.1]:44427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLC-0005xW-Dv for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:02 -0400 Received: from mail-vs1-f48.google.com ([209.85.217.48]:46763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLB-0005wl-1K for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:01 -0400 Received: by mail-vs1-f48.google.com with SMTP id b128so17240vsc.13 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:01 -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=rnEMeeT+h4IUb6m4c7+A3kBf0QAJe3fEYkrijSsECh8=; b=bHkrxTOroInDcuxuAELSRdzZvF+cH2/gr3qcwDfCaZvQrIIsbXyWO3Ny6EpjU4Hj/b kFQFe+40LpRCcUPWiERe1hZOUnWhEvK2Pkupd5Lg10MAMYNjl+fgf4xQPdz/oUDBwTF4 Xvprov7D64GSqZYvMyliNw4qfVV5yRHqSuqOh3Z3cQ35EUMGPnXM3LOx8TiYUwkpWu0D UxrdJVWVF0BALKXPSV5Q5Gf4WidHb3/7ydgUDjFldrhLxqazqxjO7woilK3kWE4mXyb8 1bZdHazPz+9ckxTJoyjEKL/VBOP/GiKEZHyBwWJE4mfVVy0EFAHH6ihSzt9dfGHhO6FF n8wA== 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=rnEMeeT+h4IUb6m4c7+A3kBf0QAJe3fEYkrijSsECh8=; b=qrN+PuM9AsfbptUyuizH8aJMUBAsabvRIoDsGPHYhpU6dCQ+Rjpak65EcjvVKDFLGX 1xJ4S0G8GCoSWLYcWKq+NT83eIC5llTltGUjiKXg/WTWNGyULfjH+ymuoS2uktE5vQCJ 2rl8WwbXSFervf0MDAQUTValfknXuP6lMsbCQLrNkw6hYvjzq8BivBXOCLAwvlmKW5gN B/VhJa9lTq4GKHb5wZDk/5vLOeslPVGxybYEK/+9NLuGXmgfvIqIUVhtGEdR42eGVywp olU9WMapAUPwhXCQQ5nz7BOAUdyNhnCEeV7Acgi9TywgX9O8Ihva96rE4NwgrPrDGmGF qGdQ== X-Gm-Message-State: AOAM530vufhtvjlJS93E10DrbNQySI5XlEHqXbpFsv2plC55azuZ3T3q e3AVwY1dH8dMBnUL8AoEKn46NhlDOgcUCW/4 X-Google-Smtp-Source: ABdhPJyuiNwBmSMIXGz3WFy9wnvNsKzzhQrnRumzEwkfBhHMrb2fhXxtBolx8wF7rXjFVYG54gamJA== X-Received: by 2002:a05:6102:e53:b0:32a:120f:3ef0 with SMTP id p19-20020a0561020e5300b0032a120f3ef0mr5507670vst.14.1650411175453; Tue, 19 Apr 2022 16:32:55 -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 v24-20020a67f6d8000000b003208cfd16d5sm181020vso.33.2022.04.19.16.32.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:32:54 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:46 -0400 Message-Id: <20220419233214.275789-2-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 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 * gnu/packages/elm.scm (elm-compiler): Rename to ... (elm): ... this variable. [description]: Tweak. --- gnu/packages/elm.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 708c1cf0d2..be2e4ebcbd 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -33,13 +33,13 @@ (define-module (gnu packages elm) ;; The `elm` build usually calls out to itself via Template Haskell to compile ;; the `elm reactor` web app (which depends on additional Elm packages) and ;; embeds the static files into itself. The reactor isn't required to compile -;; elm applications, so we want to skip it from the bootstrap package, but we +;; Elm applications, so we want to skip it from the bootstrap package, but we ;; also want to be able to enable it once we can build it. We patch Elm to -;; instead look for the files on disk relative to the executable and exit with -;; a useful error message if they aren't there. -(define-public elm-compiler +;; instead look for the files on disk relative to the executable and to have +;; `elm reactor` exit with a useful error message if they aren't there. +(define-public elm (package - (name "elm-compiler") + (name "elm") (version "0.19.1") (source (origin @@ -91,7 +91,7 @@ (define-public elm-compiler (home-page "https://elm-lang.org") (synopsis "Programming language for Web applications") (description - "This package provides Elm, a statically-typed functional programming -language for the browser. It includes commands for developers such as -@command{elm make} and @command{elm repl}.") + "Elm is a statically-typed, purely-functional programming language for +the browser. The @command{elm} exectable includes commands for developers +such as @command{elm make} and @command{elm repl}.") (license license:bsd-3))) From patchwork Tue Apr 19 23:31:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38677 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 CC34227BBEA; Wed, 20 Apr 2022 00:34:34 +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 9F5DF27BBE9 for ; Wed, 20 Apr 2022 00:34:32 +0100 (BST) Received: from localhost ([::1]:42216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxMd-0004BS-OJ for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:34:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0003b2-DL for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMA-0001wy-IR 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 ) id 1ngxMA-00061P-Ff for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 03/30] guix: Add elm-build-system and 'guix import elm'. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:02 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041119722955 (code B ref 55030); Tue, 19 Apr 2022 23:34:02 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:17 +0000 Received: from localhost ([127.0.0.1]:44430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLJ-0005xq-NE for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:17 -0400 Received: from mail-vs1-f54.google.com ([209.85.217.54]:44590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLG-0005xL-Sb for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:08 -0400 Received: by mail-vs1-f54.google.com with SMTP id m14so24206vsp.11 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:06 -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=ClT6VxzBawlVoWwfFdTZsDzbgMRfs+XG8m5rmLhBlMI=; b=a7YqO3kHyAzC86v1RiUu6IBPzjWW+Xe1Hqy+Jyo/NDuuQUHmqrBkeT1MpRi4lpXwgF Hhk/T/pLoBR6BpVRcd2Sy5mz3zz0LDdjmVuzZnFO/F4zMB7M/b+3yDRMJ1XlM1RdpQUA oTJa8AcHymUBwZQCwgicUzBZPTKzhAURI/nmrQ7T6DtHc3oW2AnhTgnom57fWsgHDQW1 MypobVN195rscsM8ORsrCjd4373bjtUQh6gGa1C+U3aQ6iE3sLySgIk5kYWRSarYML1e ig34JvY7ceyTZvO6KyCF0d6FNbjNxEyqjc8yt0WgKyljApzCyl46clbRgla+hva5JjpO A6Ow== 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=ClT6VxzBawlVoWwfFdTZsDzbgMRfs+XG8m5rmLhBlMI=; b=Wc+0VIMwXAWVp1y/dsXueRuLol0/Ua4/qDfjbg6FhJ1zG7yIsFW+LuB7zhCRiKDqpF VHRoPd5VbpShLacOfHFWg8M1gKV+6xy1+bdqAg94W69mUKOw0Qt/WQtJ02NCQEjCLJPI WFJ2P3wMIW3c41md8u+5ZgSwryMELEWz2Jklh5c94PBFOsRJBhBAR5oTuElM3CFU1Kd8 3pwYiyv1Knk4tOhySZuYw07fM49Fmr9D5ac1gPd0etpwuSNtHJt1BfKup2bx1T2uOcA7 bp/wUzZcDsvtzEGtn7/ECXRuACg4nn1hpbV9PAaBbva6+TLCxhRKApY/UFY8nUu2MhB7 KRLw== X-Gm-Message-State: AOAM532uIoc/wnTzJxAKHEU6w96qxwG16/oTonAjyh0zyEKs1LS+W5dM vHeWgPMXAX+c8Gz8asoucRfb+5Qa1Gtqo5rD X-Google-Smtp-Source: ABdhPJwJyPw2e0uB5WUD/iIZuyFKC9fRLMdhrE3J5Lc5PrDogXt/r2jRa7NRWAUpXdxIafsYvw+OcA== X-Received: by 2002:a05:6102:20e:b0:32a:25f9:7bfc with SMTP id z14-20020a056102020e00b0032a25f97bfcmr5136213vsp.82.1650411180815; Tue, 19 Apr 2022 16:33:00 -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 v13-20020ab0678d000000b0035ce198a740sm175800uar.5.2022.04.19.16.32.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:32:59 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:47 -0400 Message-Id: <20220419233214.275789-3-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 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 * gnu/packages/patches/elm-offline-package-registry.scm: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/elm.scm (elm): Use it. * guix/build-system/elm.scm, guix/build/elm-build-system.scm, guix/import/elm.scm, guix/scripts/import/elm.scm: New files. * guix/scripts/import.scm (importers): Add "elm". --- gnu/local.mk | 1 + gnu/packages/elm.scm | 8 +- .../elm-offline-package-registry.patch | 71 ++++ guix/build-system/elm.scm | 144 +++++++ guix/build/elm-build-system.scm | 380 ++++++++++++++++++ guix/import/elm.scm | 148 +++++++ guix/scripts/import.scm | 3 +- guix/scripts/import/elm.scm | 107 +++++ 8 files changed, 859 insertions(+), 3 deletions(-) create mode 100644 gnu/packages/patches/elm-offline-package-registry.patch create mode 100644 guix/build-system/elm.scm create mode 100644 guix/build/elm-build-system.scm create mode 100644 guix/import/elm.scm create mode 100644 guix/scripts/import/elm.scm diff --git a/gnu/local.mk b/gnu/local.mk index 2af4d018ba..6f02f0a6fd 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1024,6 +1024,7 @@ dist_patch_DATA = \ %D%/packages/patches/einstein-build.patch \ %D%/packages/patches/elfutils-tests-ptrace.patch \ %D%/packages/patches/elixir-path-length.patch \ + %D%/packages/patches/elm-offline-package-registry.patch \ %D%/packages/patches/elm-reactor-static-files.patch \ %D%/packages/patches/elogind-revert-polkit-detection.patch \ %D%/packages/patches/emacs-exec-path.patch \ diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index be2e4ebcbd..22c1db5942 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -25,6 +25,7 @@ (define-module (gnu packages elm) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-web) #:use-module (guix build-system haskell) + #:use-module (guix build-system elm) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -37,6 +38,8 @@ (define-module (gnu packages elm) ;; also want to be able to enable it once we can build it. We patch Elm to ;; instead look for the files on disk relative to the executable and to have ;; `elm reactor` exit with a useful error message if they aren't there. +(define %reactor-root-base + "share/elm/reactor-") (define-public elm (package (name "elm") @@ -51,13 +54,14 @@ (define-public elm (sha256 (base32 "1rdg3xp3js9xadclk3cdypkscm5wahgsfmm4ldcw3xswzhw6ri8w")) (patches - (search-patches "elm-reactor-static-files.patch")))) + (search-patches "elm-reactor-static-files.patch" + "elm-offline-package-registry.patch")))) (build-system haskell-build-system) (arguments (list #:configure-flags #~(list (string-append "--ghc-option=-DGUIX_REACTOR_STATIC_REL_ROOT=" - "\"../share/elm/reactor-" + "\"../" #$%reactor-root-base #$(package-version this-package) "\"")) #:phases diff --git a/gnu/packages/patches/elm-offline-package-registry.patch b/gnu/packages/patches/elm-offline-package-registry.patch new file mode 100644 index 0000000000..761ec69878 --- /dev/null +++ b/gnu/packages/patches/elm-offline-package-registry.patch @@ -0,0 +1,71 @@ +From 06563409e6f2b1cca7bc1b27e31efd07a7569da8 Mon Sep 17 00:00:00 2001 +From: Philip McGrath +Date: Thu, 14 Apr 2022 22:41:04 -0400 +Subject: [PATCH] minimal support for offline builds + +Normally, Elm performs HTTP requests before building to obtain or +update its list of all registed packages and their versions. +This is problematic in the Guix build environment. + +This patch causes Elm to check if the `GUIX_ELM_OFFLINE_REGISTRY_FILE` +is set and, if so, to use the contents of the file it specifies as +though it were the response from +https://package.elm-lang.org/all-packages. + +This patch does not attempt to add more general support for offline +builds. In particular, it does not attempt to support incremental +updates to the package registry cache file. See also discussion at +https://discourse.elm-lang.org/t/private-package-tool-spec/6779/25. +--- + builder/src/Deps/Registry.hs | 25 +++++++++++++++++++++---- + 1 file changed, 21 insertions(+), 4 deletions(-) + +diff --git a/builder/src/Deps/Registry.hs b/builder/src/Deps/Registry.hs +index 8d7def98..70cf3622 100644 +--- a/builder/src/Deps/Registry.hs ++++ b/builder/src/Deps/Registry.hs +@@ -18,6 +18,8 @@ import Control.Monad (liftM2) + import Data.Binary (Binary, get, put) + import qualified Data.List as List + import qualified Data.Map.Strict as Map ++import System.Environment as Env ++import qualified Data.ByteString as BS + + import qualified Deps.Website as Website + import qualified Elm.Package as Pkg +@@ -190,13 +192,28 @@ getVersions' name (Registry _ versions) = + post :: Http.Manager -> String -> D.Decoder x a -> (a -> IO b) -> IO (Either Exit.RegistryProblem b) + post manager path decoder callback = + let +- url = Website.route path [] +- in +- Http.post manager url [] Exit.RP_Http $ +- \body -> ++ mkBodyCallback url body = + case D.fromByteString decoder body of + Right a -> Right <$> callback a + Left _ -> return $ Left $ Exit.RP_Data url body ++ postOnline url cb = ++ Http.post manager url [] Exit.RP_Http cb ++ performPost f url = ++ f url (mkBodyCallback url) ++ in ++ do ++ maybeFile <- Env.lookupEnv "GUIX_ELM_OFFLINE_REGISTRY_FILE" ++ case (path, maybeFile) of ++ ( "/all-packages", Just file ) -> ++ performPost postOffline file ++ ( _, _ ) -> ++ -- don't know how to handle other endpoints yet ++ performPost postOnline (Website.route path []) ++ ++postOffline :: String -> (BS.ByteString -> IO a) -> IO a ++postOffline file callback = do ++ body <- BS.readFile file ++ callback body + + + +-- +2.32.0 + diff --git a/guix/build-system/elm.scm b/guix/build-system/elm.scm new file mode 100644 index 0000000000..bf77df6519 --- /dev/null +++ b/guix/build-system/elm.scm @@ -0,0 +1,144 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Philip McGrath +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix build-system elm) + #:use-module (guix store) + #:use-module (guix utils) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (guix monads) + #:use-module (guix search-paths) + #:use-module (guix git-download) + #:use-module (guix build-system) + #:use-module (guix build-system gnu) + #:use-module (ice-9 match) + #:use-module (srfi srfi-1) + #:export (elm->package-name + elm-package-origin + %elm-build-system-modules + %elm-default-modules + elm-build + elm-build-system)) + +(define (elm->package-name name) + "Given the NAME of an Elm package, return a Guix-style package name." + (let ((converted + (string-join (string-split (string-downcase name) #\/) "-"))) + (if (string-prefix? "elm-" converted) + converted + (string-append "elm-" converted)))) + +(define (elm-package-origin name version hash) + "Return an origin for the Elm package NAME at the given VERSION with sha256 +checksum HASH." + ;; elm requires this very specific repository structure and tagging regime + (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://github.com/" name)) + (commit version))) + (file-name (git-file-name (elm->package-name name) version)) + (sha256 hash))) + +(define %elm-build-system-modules + ;; Build-side modules imported by default. + `((guix build elm-build-system) + (guix build json) + (guix build union) + ,@%gnu-build-system-modules)) + +(define %elm-default-modules + ;; Modules in scope in the build-side environment. + '((guix build elm-build-system) + (guix build utils) + (guix build json) + (guix build union))) + +(define (default-elm) + "Return the default Elm package for builds." + ;; Lazily resolve the binding to avoid a circular dependency. + (let ((elm (resolve-interface '(gnu packages elm)))) + (module-ref elm 'elm))) + +(define* (lower name + #:key source inputs native-inputs outputs system target + (implicit-elm-package-inputs? #t) + (elm (default-elm)) + #:allow-other-keys + #:rest arguments) + "Return a bag for NAME." + (define private-keywords + '(#:target #:implicit-elm-package-inputs? #:elm #:inputs #:native-inputs)) + (cond + (target + ;; Cross-compilation is not yet supported. It should be easy, though, + ;; since the build products are all platform-independent. + #f) + (else + (bag + (name name) + (system system) + (host-inputs + `(,@(if source + `(("source" ,source)) + '()) + ,@inputs + ("elm" ,elm) + ;; TODO: probably don't need most of (standard-packages) + ,@(standard-packages))) + (outputs outputs) + (build elm-build) + (arguments (strip-keyword-arguments private-keywords arguments)))))) + +(define* (elm-build name inputs + #:key + source + (tests? #t) + (phases '%standard-phases) + (outputs '("out")) + (search-paths '()) + (system (%current-system)) + (guile #f) + (imported-modules %elm-build-system-modules) + (modules %elm-default-modules)) + "Build SOURCE using ELM." + (define builder + (with-imported-modules imported-modules + #~(begin + (use-modules #$@(sexp->gexp modules)) + (elm-build #:name #$name + #:source #+source + #:system #$system + #:tests? #$tests? + #:phases #$phases + #:outputs #$(outputs->gexp outputs) + #:search-paths '#$(sexp->gexp + (map search-path-specification->sexp + search-paths)) + #:inputs #$(input-tuples->gexp inputs))))) + (mlet %store-monad ((guile (package->derivation (or guile (default-guile)) + system #:graft? #f))) + (gexp->derivation name builder + #:system system + #:guile-for-build guile))) + +(define elm-build-system + (build-system + (name 'elm) + (description "The Elm build system") + (lower lower))) diff --git a/guix/build/elm-build-system.scm b/guix/build/elm-build-system.scm new file mode 100644 index 0000000000..b47b16973d --- /dev/null +++ b/guix/build/elm-build-system.scm @@ -0,0 +1,380 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Philip McGrath +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix build elm-build-system) + #:use-module ((guix build gnu-build-system) #:prefix gnu:) + #:use-module (guix build utils) + #:use-module (guix build json) + #:use-module (guix build union) + #:use-module (ice-9 ftw) + #:use-module (ice-9 rdelim) + #:use-module (ice-9 regex) + #:use-module (ice-9 match) + #:use-module (ice-9 popen) + #:use-module (ice-9 vlist) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-26) + #:use-module (srfi srfi-71) + #:export (%standard-phases + patch-application-dependencies + patch-json-string-escapes + read-offline-registry->vhash + elm-build)) + +;; COMMENTARY: +;; +;; Elm draws a sharp distinction between "projects" with `{"type":"package"}` +;; vs. `{"type":"application"}` in the "elm.json" file: see +;; and +;; . +;; For now, `elm-build-system` is designed for "package"s: packaging +;; "application"s requires ad-hoc replacements for some phases---but see +;; `patch-application-dependencies`, which helps to work around a known issue +;; discussed below. It would be nice to add more streamlined support for +;; "application"s one we have more experience building them in Guix. For +;; example, we could incorporate the `uglifyjs` advice from +;; . +;; +;; We want building an Elm "package" to produce: +;; +;; - a "docs.json" file with extracted documentation; and +;; +;; - an "artifacts.dat" file with compilation results for use in building +;; "package"s and "application"s. +;; +;; Unfortunately, there isn't an entry point to the Elm compiler that builds +;; those files directly. Building with `elm make` does something different, +;; more oriented toward development, testing, and building "application"s. We +;; work around this limitation by staging the "package" we're building as +;; though it were already installed in ELM_HOME, generating a trivial Elm +;; "application" that depends on the "package", and building the +;; "application", which causes the files for the "package" to be built. +;; +;; Much of the ceremony involved is to avoid using `elm` in ways that would +;; make it try to do network IO beyond the bare minimum functionality for +;; which we've patched a replacement into our `elm`. On the other hand, we +;; get to take advantage of the very regular structure required of Elm +;; packages. +;; +;; *Known issue:* Elm itself supports multiple versions of "package"s +;; coexisting simultaneously under ELM_HOME, but we do not support this yet. +;; Sometimes, parallel versions coexisting causes `elm` to try to write to +;; built "artifacts.dat" files. For now, two workarounds are possible: +;; +;; - Use `patch-application-dependencies` to rewrite an "application"'s +;; "elm.json" file to refer to the versions of its inputs actually +;; packaged in Guix. +;; +;; - Use a Guix package transformation to rewrite your "application"'s +;; dependencies recursively, so that only one version of each Elm +;; "package" is included in your "application"'s build environment. +;; +;; Patching `elm` more extensively---perhaps adding an `elm guix` +;; subcommand`---might let us address these issues more directly. +;; +;; CODE: +;; + +(define %essential-elm-packages + ;; elm/json isn't essential in a fundamental sense, + ;; but it's required for a {"type":"application"}, + ;; which we are generating to trigger the build + '("elm/core" "elm/json")) + +(define* (target-elm-version #:optional elm) + "Return the version of ELM or whichever 'elm' is in $PATH. +Return #false if it cannot be determined." + (let* ((pipe (open-pipe* OPEN_READ + (or elm "elm") + "--version")) + (line (read-line pipe))) + (and (zero? (close-pipe pipe)) + (string? line) + line))) + +(define* (prepare-elm-home #:key native-inputs inputs #:allow-other-keys) + "Set the ELM_HOME environment variable and populate the indicated directory +with the union of the Elm \"package\" inputs. Also, set GUIX_ELM_VERSION to +the version of the Elm compiler in use." + (let* ((elm (search-input-file (or native-inputs inputs) "/bin/elm")) + (elm-version (target-elm-version elm))) + (setenv "GUIX_ELM_VERSION" elm-version) + (mkdir "../elm-home") + (with-directory-excursion "../elm-home" + (union-build elm-version + (search-path-as-list + (list (string-append "share/elm/" elm-version)) + (map cdr inputs)) + #:create-all-directories? #t) + (setenv "ELM_HOME" (getcwd))))) + +(define* (stage #:key native-inputs inputs #:allow-other-keys) + "Extract the installable files from the Elm \"package\" into a staging +directory and link it into the ELM_HOME tree. Also, set GUIX_ELM_PKG_NAME and +GUIX_ELM_PKG_VERSION to the name and version, respectively, of the Elm package +being built, as defined in its \"elm.json\" file." + (let* ((elm-version (getenv "GUIX_ELM_VERSION")) + (elm-home (getenv "ELM_HOME")) + (info (match (call-with-input-file "elm.json" read-json) + (('@ . alist) alist))) + (name (assoc-ref info "name")) + (version (assoc-ref info "version")) + (rel-dir (string-append elm-version "/packages/" name "/" version)) + (staged-dir (string-append elm-home "/../staged/" rel-dir))) + (setenv "GUIX_ELM_PKG_NAME" name) + (setenv "GUIX_ELM_PKG_VERSION" version) + (mkdir-p staged-dir) + (mkdir-p (string-append elm-home "/" (dirname rel-dir))) + (symlink staged-dir + (string-append elm-home "/" rel-dir)) + (copy-recursively "src" (string-append staged-dir "/src")) + (install-file "elm.json" staged-dir) + (install-file "README.md" staged-dir) + (when (file-exists? "LICENSE") + (install-file "LICENSE" staged-dir)))) + +(define (patch-json-string-escapes file) + "Work around a bug in the Elm compiler's JSON parser by attempting to +replace REVERSE-SOLIDUS--SOLIDUS escape sequences in FILE with unescaped +SOLIDUS characters." + ;; https://github.com/elm/compiler/issues/2255 + (substitute* file + (("\\\\/") + "/"))) + +(define (directory-list dir) + "Like DIRECTORY-LIST from 'racket/base': lists the contents of DIR, not +including the special \".\" and \"..\" entries." + (scandir dir (lambda (f) + (not (member f '("." "..")))))) + +(define* (make-offline-registry-file #:key inputs #:allow-other-keys) + "Generate an \"offline-package-registry.json\" file and sets +GUIX_ELM_OFFLINE_REGISTRY_FILE to its path, cooperating with a patch to `elm` +to avoid attempting to download a list of all published Elm package names and +versions from the internet." + (let* ((elm-home (getenv "ELM_HOME")) + (elm-version (getenv "GUIX_ELM_VERSION")) + (registry-file + (string-append elm-home "/../offline-package-registry.json")) + (registry-alist + ;; here, we don't need to look up entries, so we build the + ;; alist directly, rather than using a vhash + (with-directory-excursion + (string-append elm-home "/" elm-version "/packages") + (append-map (lambda (org) + (with-directory-excursion org + (map (lambda (repo) + (cons (string-append org "/" repo) + (directory-list repo))) + (directory-list ".")))) + (directory-list "."))))) + (call-with-output-file registry-file + (lambda (out) + (write-json `(@ ,@registry-alist) out))) + (patch-json-string-escapes registry-file) + (setenv "GUIX_ELM_OFFLINE_REGISTRY_FILE" registry-file))) + +(define (read-offline-registry->vhash) + "Return a vhash mapping Elm \"package\" names to lists of available version +strings." + (alist->vhash + (match (call-with-input-file (getenv "GUIX_ELM_OFFLINE_REGISTRY_FILE") + read-json) + (('@ . alist) alist)))) + +(define (find-indirect-dependencies registry-vhash root-pkg root-version) + "Return the recursive dependencies of ROOT-PKG, an Elm \"package\" name, at +version ROOT-VERSION as an alist mapping Elm \"package\" names to (single) +versions. The resulting alist will not include entries for +%ESSENTIAL-ELM-PACKAGES or for ROOT-PKG itself. The REGISTRY-VHASH is used in +conjunction with the ELM_HOME environment variable to find dependencies." + (with-directory-excursion + (string-append (getenv "ELM_HOME") + "/" (getenv "GUIX_ELM_VERSION") + "/packages") + (define (get-dependencies pkg version acc) + (let* ((elm-json-alist + (match (call-with-input-file + (string-append pkg "/" version "/elm.json") + read-json) + (('@ . alist) alist))) + (deps-alist + (match (assoc-ref elm-json-alist "dependencies") + (('@ . alist) alist))) + (deps-names + (filter-map (match-lambda + ((name . range) + (and (not (member name %essential-elm-packages)) + name))) + deps-alist))) + (fold register-dependency acc deps-names))) + (define (register-dependency pkg acc) + ;; Using vhash-cons unconditionally would add duplicate entries, + ;; which would then cause problems when we must emit JSON. + ;; Plus, we can avoid needlessly duplicating work. + (if (vhash-assoc pkg acc) + acc + (match (vhash-assoc pkg registry-vhash) + ((_ version . _) + ;; in the rare case that multiple versions are present, + ;; just picking an arbitrary one seems to work well enough for now + (get-dependencies pkg version (vhash-cons pkg version acc)))))) + (vlist->list + (get-dependencies root-pkg root-version vlist-null)))) + +(define* (patch-application-dependencies #:key inputs #:allow-other-keys) + "Rewrites the \"elm.json\" file in the working directory---which must be of +`\"type\":\"application\"`, not `\"type\":\"package\"`---to refer to the +dependency versions actually provided via Guix. The +GUIX_ELM_OFFLINE_REGISTRY_FILE environment variable is used to find available +versions." + (let* ((registry-vhash (read-offline-registry->vhash)) + (rewrite-dep-version + (match-lambda + ((name . _) + (cons name (match (vhash-assoc name registry-vhash) + ((_ version) ;; no dot + version)))))) + (rewrite-direct/indirect + (match-lambda + ;; a little checking to avoid confusing misuse with "package" + ;; project dependencies, which have a different shape + (((and key (or "direct" "indirect")) + '@ . alist) + `(,key @ ,@(map rewrite-dep-version alist))))) + (rewrite-json-section + (match-lambda + (((and key (or "dependencies" "test-dependencies")) + '@ . alist) + `(,key @ ,@(map rewrite-direct/indirect alist))) + ((k . v) + (cons k v)))) + (rewrite-elm-json + (match-lambda + (('@ . alist) + `(@ ,@(map rewrite-json-section alist)))))) + (with-atomic-file-replacement "elm.json" + (lambda (in out) + (write-json (rewrite-elm-json (read-json in)) + out))) + (patch-json-string-escapes "elm.json"))) + +(define* (configure #:key native-inputs inputs #:allow-other-keys) + "Generate a trivial Elm \"application\" with a direct dependency on the Elm +\"package\" currently being built." + (let* ((info (match (call-with-input-file "elm.json" read-json) + (('@ . alist) alist))) + (name (getenv "GUIX_ELM_PKG_NAME")) + (version (getenv "GUIX_ELM_PKG_VERSION")) + (elm-home (getenv "ELM_HOME")) + (registry-vhash (read-offline-registry->vhash)) + (app-dir (string-append elm-home "/../fake-app"))) + (mkdir-p (string-append app-dir "/src")) + (with-directory-excursion app-dir + (call-with-output-file "elm.json" + (lambda (out) + (write-json + `(@ ("type" . "application") + ("source-directories" "src") ;; intentionally no dot + ("elm-version" . ,(getenv "GUIX_ELM_VERSION")) + ("dependencies" + @ ("direct" + @ ,@(map (lambda (pkg) + (match (vhash-assoc pkg registry-vhash) + ((_ pkg-version . _) + (cons pkg + (if (equal? pkg name) + version + pkg-version))))) + (if (member name %essential-elm-packages) + %essential-elm-packages + (cons name %essential-elm-packages)))) + ("indirect" + @ ,@(if (member name %essential-elm-packages) + '() + (find-indirect-dependencies registry-vhash + name + version)))) + ("test-dependencies" + @ ("direct" @) + ("indirect" @))) + out))) + (patch-json-string-escapes "elm.json") + (with-output-to-file "src/Main.elm" + ;; the most trivial possible elm program + (lambda () + (display "module Main exposing (..) +main : Program () () () +main = Platform.worker + { init = \\_ -> ( (), Cmd.none ) + , update = \\_ -> \\_ -> ( (), Cmd.none ) + , subscriptions = \\_ -> Sub.none }")))))) + +(define* (build #:key native-inputs inputs #:allow-other-keys) + "Run `elm make` to build the Elm \"application\" generated by CONFIGURE." + (with-directory-excursion (string-append (getenv "ELM_HOME") "/../fake-app") + (invoke (search-input-file (or native-inputs inputs) "/bin/elm") + "make" + "src/Main.elm"))) + +(define* (check #:key tests? #:allow-other-keys) + "Does nothing, because the `elm-test` executable has not yet been packaged +for Guix." + (when tests? + (display "elm-test has not yet been packaged for Guix\n"))) + +(define* (install #:key outputs #:allow-other-keys) + "Installs the contents of the directory generated by STAGE, including any +files added by BUILD, to the Guix package output." + (copy-recursively + (string-append (getenv "ELM_HOME") "/../staged") + (string-append (assoc-ref outputs "out") "/share/elm"))) + +(define* (validate-compiled #:key outputs #:allow-other-keys) + "Checks that the files \"artifacts.dat\" and \"docs.json\" have been +installed." + (let ((base (string-append "/share/elm/" + (getenv "GUIX_ELM_VERSION") + "/packages/" + (getenv "GUIX_ELM_PKG_NAME") + "/" + (getenv "GUIX_ELM_PKG_VERSION"))) + (expected '("artifacts.dat" "docs.json"))) + (for-each (lambda (name) + (search-input-file outputs (string-append base "/" name))) + expected))) + +(define %standard-phases + (modify-phases gnu:%standard-phases + (add-after 'unpack 'prepare-elm-home prepare-elm-home) + (delete 'bootstrap) + (add-after 'patch-source-shebangs 'stage stage) + (add-after 'stage 'make-offline-registry-file make-offline-registry-file) + (replace 'configure configure) + (delete 'patch-generated-file-shebangs) + (replace 'build build) + (replace 'check check) + (replace 'install install) + (add-before 'validate-documentation-location 'validate-compiled + validate-compiled))) + +(define* (elm-build #:key inputs (phases %standard-phases) + #:allow-other-keys #:rest args) + "Builds the given Elm project, applying all of the PHASES in order." + (apply gnu:gnu-build #:inputs inputs #:phases phases args)) diff --git a/guix/import/elm.scm b/guix/import/elm.scm new file mode 100644 index 0000000000..ef0a31207c --- /dev/null +++ b/guix/import/elm.scm @@ -0,0 +1,148 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Philip McGrath +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix import elm) + #:use-module (ice-9 match) + #:use-module (ice-9 regex) + #:use-module (ice-9 vlist) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-11) + #:use-module (srfi srfi-26) + #:use-module (srfi srfi-34) + #:use-module (srfi srfi-35) + #:use-module (guix utils) + #:use-module (guix base32) + #:use-module (guix hash) + #:use-module (guix memoization) + #:use-module (guix diagnostics) + #:use-module (guix i18n) + #:use-module ((guix ui) #:select (display-hint)) + #:use-module ((guix build utils) + #:select ((package-name->name+version + . hyphen-package-name->name+version) + find-files + invoke)) + #:use-module (guix import utils) + #:use-module (guix git) + #:use-module (guix import json) + #:autoload (gcrypt hash) (hash-algorithm sha256) + #:use-module (json) + #:use-module (guix packages) + #:use-module (guix upstream) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system elm) + #:export (elm-recursive-import + elm->guix-package)) + +(define elm-package-registry + ;; It is much nicer to fetch this small (< 40 KB gzipped) + ;; file once than to do many HTTP requests. + (mlambda () + "Fetch the Elm package registry, represented as a vhash mapping package +names to lists of available versions, sorted from latest to oldest." + (let ((url "https://package.elm-lang.org/all-packages")) + (cond + ((json-fetch url) + => (lambda (alist) + (fold (lambda (entry vh) + (match entry + ((name . vec) + (vhash-cons name + (sort (vector->list vec) version>?) + vh)))) + vlist-null + alist))) + (else + (raise (formatted-message + (G_ "error downloading Elm package registry from ~a") + url))))))) + +(define (make-elm-package-sexp name version) + "Return two values: the `package' s-expression for the Elm package with the +given NAME and VERSION, and a list of Elm packages it depends on." + (define-values (checkout _commit _relation) + ;; Elm requires that packages use this very specific format + (update-cached-checkout (string-append "https://github.com/" name) + #:ref `(tag . ,version))) + (define info + (call-with-input-file (string-append checkout "/elm.json") + json->scm)) + (define (get-deps key) + (cond + ((assoc-ref info key) + => (cut map car <>)) + (else + '()))) + (define dependencies + (get-deps "dependencies")) + (define test-dependencies + (get-deps "test-dependencies")) + (values + `(package + (name ,(elm->package-name name)) + (version ,version) + (source (elm-package-origin + ,name + version ;; no , + (base32 + ,(bytevector->nix-base32-string + (file-hash* checkout + #:algorithm (hash-algorithm sha256) + #:recursive? #t))))) + (build-system elm-build-system) + ,@(maybe-propagated-inputs (map elm->package-name dependencies)) + ,@(maybe-inputs (map elm->package-name test-dependencies)) + (home-page ,(string-append "https://package.elm-lang.org/packages/" + name "/" version)) + (synopsis ,(assoc-ref info "summary")) + (description + ;; Try to use the first paragraph of README.md (which Elm requires), + ;; or fall back to summary otherwise. + ,(beautify-description + (match (chunk-lines (call-with-input-file + (string-append checkout "/README.md") + read-lines)) + ((_ par . _) + (string-join par " ")) + (_ + (assoc-ref info "summary"))))) + (license ,(spdx-string->license (assoc-ref info "license"))) + ;; so we know where the "/" goes + (properties '((upstream-name . ,name)))) + (append dependencies test-dependencies))) + +(define elm->guix-package + (memoize + (lambda* (package-name #:key repo version) + "Fetch the metadata for PACKAGE-NAME, an Elm package registered at +package.elm.org, and return two values: the `package' s-expression +corresponding to that package (or #f on failure) and a list of Elm +dependencies.." + (cond + ((vhash-assoc package-name (elm-package-registry)) + => (match-lambda + ((_found latest . _versions) + (make-elm-package-sexp package-name (or version latest))))) + (else + (values #f '())))))) + +(define* (elm-recursive-import package-name #:optional version) + (recursive-import package-name + #:version version + #:repo->guix-package elm->guix-package + #:guix-name elm->package-name)) diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm index 40fa6759ae..fa79f3211e 100644 --- a/guix/scripts/import.scm +++ b/guix/scripts/import.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2019 Ricardo Wurmus ;;; Copyright © 2021 Simon Tournier ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 2022 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -80,7 +81,7 @@ (define %standard-import-options '()) (define importers '("gnu" "pypi" "cpan" "hackage" "stackage" "egg" "elpa" "gem" "go" "cran" "crate" "texlive" "json" "opam" - "minetest")) + "minetest" "elm")) (define (resolve-importer name) (let ((module (resolve-interface diff --git a/guix/scripts/import/elm.scm b/guix/scripts/import/elm.scm new file mode 100644 index 0000000000..68dcbf1070 --- /dev/null +++ b/guix/scripts/import/elm.scm @@ -0,0 +1,107 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Philip McGrath +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix scripts import elm) + #:use-module (guix ui) + #:use-module (guix utils) + #:use-module (guix scripts) + #:use-module (guix import elm) + #:use-module (guix scripts import) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-11) + #:use-module (srfi srfi-37) + #:use-module (srfi srfi-71) + #:use-module (ice-9 match) + #:use-module (ice-9 format) + #:export (guix-import-elm)) + + +;;; +;;; Command-line options. +;;; + +(define %default-options + '()) + +(define (show-help) + (display (G_ "Usage: guix import elm PACKAGE-NAME + +Import and convert the Elm package PACKAGE-NAME. Optionally, a version +can be specified after the arobas (@) character.\n")) + (display (G_ " + -h, --help display this help and exit")) + (display (G_ " + -r, --recursive import packages recursively")) + (display (G_ " + -V, --version display version information and exit")) + (newline) + (show-bug-report-information)) + +(define %options + ;; Specification of the command-line options. + (cons* (option '(#\h "help") #f #f + (lambda args + (show-help) + (exit 0))) + (option '(#\V "version") #f #f + (lambda args + (show-version-and-exit "guix import elm"))) + (option '(#\r "recursive") #f #f + (lambda (opt name arg result) + (alist-cons 'recursive #t result))) + %standard-import-options)) + + +;;; +;;; Entry point. +;;; + +(define (guix-import-elm . args) + (define (parse-options) + ;; Return the alist of option values. + (parse-command-line args %options (list %default-options) + #:build-options? #f)) + + (let* ((opts (parse-options)) + (args (filter-map (match-lambda + (('argument . value) + value) + (_ #f)) + (reverse opts)))) + (match args + ((spec) + (with-error-handling + (let ((name version (package-name->name+version spec))) + (if (assoc-ref opts 'recursive) + ;; Recursive import + (map (match-lambda + ((and ('package ('name name) . rest) pkg) + `(define-public ,(string->symbol name) + ,pkg)) + (_ #f)) + (elm-recursive-import name version)) + ;; Single import + (let ((sexp (elm->guix-package name #:version version))) + (unless sexp + (leave (G_ "failed to download meta-data for package '~a'~%") + name)) + sexp))))) + (() + (leave (G_ "too few arguments~%"))) + ((many ...) + (leave (G_ "too many arguments~%")))))) From patchwork Tue Apr 19 23:31:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38671 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 1A6C227BBEB; Wed, 20 Apr 2022 00:34:20 +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 C2ED427BBEA for ; Wed, 20 Apr 2022 00:34:19 +0100 (BST) Received: from localhost ([::1]:41448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxMQ-0003d8-Ry for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:34:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0003b4-Cb for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMA-0001wz-V4 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 ) id 1ngxMA-00061W-Ro for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 04/30] gnu: Add elm-core and elm-json. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:02 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041119822962 (code B ref 55030); Tue, 19 Apr 2022 23:34:02 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:18 +0000 Received: from localhost ([127.0.0.1]:44434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLR-0005yC-Ly for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:18 -0400 Received: from mail-ua1-f49.google.com ([209.85.222.49]:39509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLM-0005xi-FJ for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:12 -0400 Received: by mail-ua1-f49.google.com with SMTP id i26so17086uap.6 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:12 -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=NyReZl9MgfamlUzuzw5SybgiK2rzwKUE0DyrFWouLyA=; b=RIYO1OvPSRJ41lG/+j75PGF9reGb6T/N66DKY1uQcPuu15g6wzyPAhL2XFQC0HMH3O j6a/ss9lumupcCCApHuDGOIm1KS2iJWlXCLqxHDRTe5cjmU2L02PMC9vItGytUwU86zi bprgksFiRFey02J+g9IHvOaBDl7Xsg52zGsMDso0kf+UWzyPr6Gr4wmKhN9RlA+KWMtg 38g5e2GFuwtrW5AxAIgc6jUOD6f9cEgWbkXnfJYT0WYONJHpXBk/HePUvO7y99g5QtKE PtvKm0e1VRKZ0vAumvqRqrrhcLd89JOU2mPPdAr6/duLD9kQ42TeOXIei1u3YOEQacOl bdNg== 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=NyReZl9MgfamlUzuzw5SybgiK2rzwKUE0DyrFWouLyA=; b=E44guUn8DfemC92PtbCZRJ9m4CDKgaVwnKdDV4bNL3oINbzZ8KAFtuAf+IdZ6bWbVZ XNwcSBzkJk5vHcWJxlljK7ZFRAzR/AkFN5d1tBpk19sZBrBeWfj/l2lyOxrcJZwZn4gJ TF6vPSnp+WwDZLE2CcFYMpUQEtQdr39aMp1DOJE+4i/HgmHvkFgMrlaBvlzJy8zivFos UkxPQmeQRfe1YwNp03RF0STBkJ9Z1fLQ9lBp6lN50LNh0UHIGanBgzsT+2lCMBghlOJH ODtiOzT2InLIK07vLha/H30cUua0XLXsJAUjrU7cRp57BS/luKdsQ//X+X2iOu/WPQ2D u87Q== X-Gm-Message-State: AOAM531NIwry5/NjHQOk5lFT8vCXEtzDHbmXLvWgPBxcjS4bWHgiK51p 4cIF0Q1AnX4zR64oeRPO1MgpTuyyfYX1HW0p X-Google-Smtp-Source: ABdhPJzcsKn0zYZg00Nymjn7NPxqlS1jGCMVSHNhzXIRNNrIX1WAFyzXAYuGQhONvHyRUmgUpiHUFQ== X-Received: by 2002:ab0:7308:0:b0:35f:acfb:c011 with SMTP id v8-20020ab07308000000b0035facfbc011mr4727923uao.51.1650411186706; Tue, 19 Apr 2022 16:33:06 -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 n3-20020ab07483000000b0035fab9b938asm179265uap.28.2022.04.19.16.33.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:06 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:48 -0400 Message-Id: <20220419233214.275789-4-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 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 | 56 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 22c1db5942..b61d238cff 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -99,3 +99,59 @@ (define-public elm the browser. The @command{elm} exectable includes commands for developers such as @command{elm make} and @command{elm repl}.") (license license:bsd-3))) + +(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) + (properties '((upstream-name . "elm/core"))))) + +(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) + (properties '((upstream-name . "elm/json"))))) + +(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") + (propagated-inputs '()) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (delete 'validate-compiled)) + #:implicit-elm-package-inputs? #f))))) From patchwork Tue Apr 19 23:31:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38676 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 BDBC527BBEB; Wed, 20 Apr 2022 00:34:34 +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 570F827BBEA for ; Wed, 20 Apr 2022 00:34:34 +0100 (BST) Received: from localhost ([::1]:42378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxMf-0004I7-GL for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:34:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0003b3-CI for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMB-0001x0-AB 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 ) id 1ngxMB-00061e-7i for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 05/30] build-system/elm: Add implicit Elm inputs. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:03 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041119822969 (code B ref 55030); Tue, 19 Apr 2022 23:34:03 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:18 +0000 Received: from localhost ([127.0.0.1]:44436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLS-0005yJ-74 for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:18 -0400 Received: from mail-ua1-f52.google.com ([209.85.222.52]:38657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLR-0005xt-1Q for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:17 -0400 Received: by mail-ua1-f52.google.com with SMTP id y2so18230uaq.5 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:17 -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=QKeYglNIu3HHMWV3L5gQX7UUrWLR4YJ0MvRfu6gJH/s=; b=d+Pm39zoKTBbCpTLYedfWxuADUnaP8cKIHnMNZoFjKTON+/BwqIeMqpXnXZynA77SB c1OqeFbEdl3oUeFIaXyGS8eOmPJ1Ez2xV1fyKnR5UzRbfrKhYxCtZxJ/wdMkz1UfKoQS vS4xG+oM4ywxQHYwC0FWMMtVRYf68HRmwtAoCgmO958vkPbgCblBMucCHn5xjK1qTAqQ yvtBWcdJXnja0RBa5AyjVfEf9+uDucBPBOoPr+KF7Lf/LY83UUCIUlcMhI+lak8fVWbR sCvfE6HqKNq/tgqowCzERwZnmV5lDeUnDui3sbabno7k3c3Pq4ukEaBmepDfYGUuzQvm qwjA== 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=QKeYglNIu3HHMWV3L5gQX7UUrWLR4YJ0MvRfu6gJH/s=; b=umMukhQFI2mAwLqZ/i1na2+UPXR0gUJ9EVlA7aJLEHSiAC38lIXuWsUadP+P2LV2p/ 6ASpPSnvriErxe3LbmYXKloT1TuIEdYgZGt8UauGLmicC8WClOZaA7poa0RvMrTlhKUh 0Etra7XoKc88Oy0BXrcqQeQfeYi4oruBvN+5rVoR9pSBqv7YNR3h3dn2kFoDduAGrS2v g5Q83y2TARKZ1+wQd2MBZQTKWj79/RQU0Ai3IV+mj+gX4PPib7nMTZt/ms2OPAaJOFKy H8zObSIgh9Rf+z0BaGwFOoxJNM6XIrltTR/vCImaWMrfDwSfK8d6m48KY3te0KTt9O1G mcXQ== X-Gm-Message-State: AOAM530vB5dNm/VJAHKijS7nHANl2vmImYdF2H+15OvAXrpTKPLEWGeF H8KN1u9bGKfkEL/lrDsupwcjPoW1Vv936wOc X-Google-Smtp-Source: ABdhPJxj02N+ujjjM5gi1PVK4W87TD3yzgHvA5rec5MPeXodbxt8NXbYxUC7kL/VirWVQXvsHEejeg== X-Received: by 2002:ab0:4504:0:b0:351:2448:a093 with SMTP id r4-20020ab04504000000b003512448a093mr4601562uar.121.1650411191500; Tue, 19 Apr 2022 16:33:11 -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 q187-20020a6743c4000000b0032a4ae71201sm170065vsa.29.2022.04.19.16.33.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:10 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:49 -0400 Message-Id: <20220419233214.275789-5-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 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 * guix/build-system/elm.scm (default-elm-core): New variable. (default-elm-json): Likewise (lower): Use them as implicit inputs when applicable. --- guix/build-system/elm.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/guix/build-system/elm.scm b/guix/build-system/elm.scm index bf77df6519..046e6e0a1f 100644 --- a/guix/build-system/elm.scm +++ b/guix/build-system/elm.scm @@ -75,6 +75,18 @@ (define (default-elm) (let ((elm (resolve-interface '(gnu packages elm)))) (module-ref elm 'elm))) +(define (default-elm-core) + "Return the default elm-core package." + ;; Lazily resolve the binding to avoid a circular dependency. + (let ((elm (resolve-interface '(gnu packages elm)))) + (module-ref elm 'elm-core))) + +(define (default-elm-json) + "Return the default elm-json package." + ;; Lazily resolve the binding to avoid a circular dependency. + (let ((elm (resolve-interface '(gnu packages elm)))) + (module-ref elm 'elm-json))) + (define* (lower name #:key source inputs native-inputs outputs system target (implicit-elm-package-inputs? #t) @@ -99,6 +111,26 @@ (define private-keywords '()) ,@inputs ("elm" ,elm) + ,@(cond + (implicit-elm-package-inputs? + ;; These are needed for elm-build-system even if not actually + ;; needed by the package being built. But "elm/json" is often + ;; present in practice, and "elm/core" always is: only add the + ;; default packages if no suitable inputs have been given explicitly. + (filter-map (match-lambda + ((name get-default) + (cond + ((find (match-lambda + ((_ pkg . _) + (equal? name (package-upstream-name pkg)))) + inputs) + #f) + (else + `(,name ,(get-default)))))) + `(("elm/core" ,default-elm-core) + ("elm/json" ,default-elm-json)))) + (else + '())) ;; TODO: probably don't need most of (standard-packages) ,@(standard-packages))) (outputs outputs) From patchwork Tue Apr 19 23:31:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38684 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 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 ; 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 ) 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 ) 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 ) 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 ) 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 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:03 +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: Philip McGrath 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 ) 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 ) 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 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 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 * gnu/packages/elm.scm (elm-virtual-dom): New variable. --- gnu/packages/elm.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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"))))) From patchwork Tue Apr 19 23:31: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: 38674 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 8216D27BBEA; Wed, 20 Apr 2022 00:34:28 +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 5295027BBE9 for ; Wed, 20 Apr 2022 00:34:28 +0100 (BST) Received: from localhost ([::1]:41898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxMZ-0003xd-Cq for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:34:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0003b5-Cx for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0001x2-2x 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 ) id 1ngxMC-00061s-02 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 07/30] gnu: Add elm-html. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:03 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041120823007 (code B ref 55030); Tue, 19 Apr 2022 23:34:03 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:28 +0000 Received: from localhost ([127.0.0.1]:44442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLc-0005z0-CT for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:28 -0400 Received: from mail-ua1-f54.google.com ([209.85.222.54]:37674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLa-0005ya-Me for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:26 -0400 Received: by mail-ua1-f54.google.com with SMTP id f7so19481uap.4 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33: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=h8vKMDfuXVn3COi+tRQZLf2jLWdNObT6QwePCwLZwN0=; b=DYVODCfsWJY1ox5lji4aYwhcl/ZvRgTgXAWUu//3DsLZmnWieOed3z1vPu79++DY5O klyJwdduQEvfyXP3sfDQ0R8yA5cXIpVNOx2oby8KxWTU0DVaftVfqTcK8yDBNRp6WxEK GATSK7gg9bYirQbmw5jx1anElEv1qvaj86OUa8uitVTeaomSjaCvvIcVd3f1fVGoj7MH CPur4yHf+9ML2+/TLnKgyO7Ol7VeEL4sGkaFiMggT0w5G6hnI+q4BNC/NRuSUf4LGDYc SxCn6T9FcUjo3HW1fwlOb9U5qOcOxBDBMxM2WEWdmvWv/gWfgyUYWX+dpQmtOKTvaiFx znrw== 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=h8vKMDfuXVn3COi+tRQZLf2jLWdNObT6QwePCwLZwN0=; b=0AF9TxvkloHBEqFBUBc9Rogky+Ypz7JlqTMUB/G16NCzZZJ9rQb2ahT1pvcpB8yq8p iFj7CLiE4VxaCst2/9IwvLezcmc8m1JcOGrCSHDYrhxycv46o7yVsx7Gwo1Hwd9LAeiG IXId9uRSa+HkKWC2BOI7yYYXlatyKosp2naySlg8HGpAWeEXvrmIGZD6TaCKF/DQLPMi w4sZ/lF6mlDgW7yBkas9MjFgeUfI+DUrz8pI98Ed7Wx0mZ1YcxJB7gD2+KEp6EweBZlf cdHx/5p0t8yyPDQuvi+hq4WZ66g0ooYX8PUtO2jia5loHRH8kJIKjcOyZTDCIySweXH5 d1NQ== X-Gm-Message-State: AOAM533dqaLtEoaggSrXdJG1Sa3EzCBLuceOh/hyELfCw4ljPM55dAF5 Ck6ygqXUUkgUoG8fUztCxyUtXSPgBudji6FT X-Google-Smtp-Source: ABdhPJw8pdFYJWBMCicSyRmoE02s0AvkMPHzHg687YVVLjINOZXvxhEYJbDtI++lYpG3eRk4xYn/Ew== X-Received: by 2002:ab0:1c58:0:b0:35f:c70b:adb9 with SMTP id o24-20020ab01c58000000b0035fc70badb9mr5010280uaj.40.1650411201157; Tue, 19 Apr 2022 16:33:21 -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 g11-20020ab0598b000000b0034a021faff9sm165377uad.14.2022.04.19.16.33.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:20 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:51 -0400 Message-Id: <20220419233214.275789-7-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 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 * gnu/packages/elm.scm (elm-html): New variable. --- gnu/packages/elm.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index af12804301..4ab7063adc 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -176,3 +176,23 @@ (define-public elm-virtual-dom higher-level libraries directly.") (license license:bsd-3) (properties '((upstream-name . "elm/virtual-dom"))))) + +(define-public elm-html + (package + (name "elm-html") + (version "1.0.0") + (source + (elm-package-origin + "elm/html" + version + (base32 "15k1679ja57vvlpinpv06znmrxy09lbhzfkzdc89i01qa8c4gb4a"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-virtual-dom + elm-json + elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/html/1.0.0") + (synopsis "Fast HTML, rendered with virtual DOM diffing") + (description "This package provides Elm's HTML rendering library.") + (license license:bsd-3) + (properties '((upstream-name . "elm/html"))))) From patchwork Tue Apr 19 23:31:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38681 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 C2E4D27BBEA; Wed, 20 Apr 2022 00:35:47 +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 8A92E27BBE9 for ; Wed, 20 Apr 2022 00:35:47 +0100 (BST) Received: from localhost ([::1]:43316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxNp-0004v4-2c for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:35:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0003bi-Oy for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0001xS-Fc 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 ) id 1ngxMC-000620-D3 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 08/30] gnu: Add elm-svg. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34: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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041121223025 (code B ref 55030); Tue, 19 Apr 2022 23:34:04 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:32 +0000 Received: from localhost ([127.0.0.1]:44445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLg-0005zI-Kd for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:32 -0400 Received: from mail-vs1-f51.google.com ([209.85.217.51]:33752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLf-0005ys-4w for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:31 -0400 Received: by mail-vs1-f51.google.com with SMTP id z139so77665vsz.0 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:31 -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=Kq8+IHTWukrEFcRDqf7wi+h/Y6di7nYUPghHqCEXhTk=; b=HXPPUczJapqLTKMi25RW8keuz62pnfxcv3ZW1vIIQYKG4FRvrwhW70aBDPPXCsQ4zo HwfyhkxhDH7grtHcaMfwSb3SSR2F5LfTSjhHhoHpwV+G/3rdwG1vrIydR0AcACmC0/rq zrs0nHJencg+NHNKiCUEpt3b5AR1ZnZtcvfd/iMe8AaACbCilLnPCuKU0DPGNQxfJyDR bZFvUM3S7Zyk6o4Lbk6JQjXQATgdUFOfQWfoVROP34ofXMbOmis5+MS/J4vCELkqBKg+ YruY+rtSIAqbOHTloowxUPycp/6KAjpUsD4ILUImoWEW0b39omPXpoCDyhK9zPztqmRR El3w== 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=Kq8+IHTWukrEFcRDqf7wi+h/Y6di7nYUPghHqCEXhTk=; b=NkQf7o703+7iYtbHHioUDx7msxEQVma9NoeqFbxnUhdSzx11B5pAuamwzph8RSjoX6 Kfpqky4lTWIWjd3q3ZLza2dklENEPbrJQygW3/Gc4J0fuetXenQWUJYWo0un3ZO7D4Yw Nw8UX2d287ZVaBoPB89s8DHpxBN4rZtPjhCz0yE4itqs5/WDAbl8tSkCjUB8oNtr/zPs lFrxZZcP/ZSIYoCVnIvZB1mQaM9J4kvXDMhWkWdHxqz01me2m7lBf+0YuKEfOAu97k0s dLtSTvE+JVzBNepRNwGdi0zlQN9mkTYcYPWKsSxhLZmzLTbJzAVKlY6z7ztt7LT2/I6i 1xHw== X-Gm-Message-State: AOAM53164nv9+FivdScB7T1uY0xJKd6yk6s6YROttnmN6LHWzKERvU63 1ohmt/FwA107GZreGg648AShMxL+4oKiCdqK X-Google-Smtp-Source: ABdhPJxstg0CX1+s+Mv0Xw7BXoGldz3trEIPTEKUHmA7+gu2XEPW4fpKO5oZ0g/gLvSI/3srXeMpMQ== X-Received: by 2002:a67:d197:0:b0:328:dd6:9ecb with SMTP id w23-20020a67d197000000b003280dd69ecbmr5386961vsi.71.1650411205636; Tue, 19 Apr 2022 16:33:25 -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 j14-20020ab015ce000000b0035cc0bdd9f6sm174253uae.19.2022.04.19.16.33.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:24 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:52 -0400 Message-Id: <20220419233214.275789-8-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 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 * gnu/packages/elm.scm (elm-svg): New variable. --- gnu/packages/elm.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 4ab7063adc..053a2e62f7 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -196,3 +196,26 @@ (define-public elm-html (description "This package provides Elm's HTML rendering library.") (license license:bsd-3) (properties '((upstream-name . "elm/html"))))) + +(define-public elm-svg + (package + (name "elm-svg") + (version "1.0.1") + (source + (elm-package-origin + "elm/svg" + version + (base32 "1iqsc3p129j56lp1y3z3mfc6x1shvrmx3pkhri2777ylhyw90qvl"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-html + elm-virtual-dom + elm-json + elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/svg/1.0.1") + (synopsis "Fast SVG, rendered with virtual DOM diffing") + (description + "This package provides Elm's @acronym{SVG, Scalable Vector Graphics} +library.") + (license license:bsd-3) + (properties '((upstream-name . "elm/svg"))))) From patchwork Tue Apr 19 23:31:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38675 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 A4AE127BBEA; Wed, 20 Apr 2022 00:34:31 +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 5550B27BBE9 for ; Wed, 20 Apr 2022 00:34:31 +0100 (BST) Received: from localhost ([::1]:42184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxMc-0004AJ-Gc for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:34:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMD-0003cB-4w for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMC-0001xe-SV 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 ) id 1ngxMC-00062D-Pt for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 09/30] gnu: Add elm-time. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34: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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041121723043 (code B ref 55030); Tue, 19 Apr 2022 23:34:04 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:37 +0000 Received: from localhost ([127.0.0.1]:44448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLk-0005zb-T9 for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:37 -0400 Received: from mail-vs1-f49.google.com ([209.85.217.49]:37660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLj-0005z9-Nt for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:35 -0400 Received: by mail-vs1-f49.google.com with SMTP id q2so47276vsp.4 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:35 -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=LbzCYApGfMt4Rk0ELtpqDP7yrOQHE342mpHUk7D0pi8=; b=QFQ4m86TmSDRBcMXUwgWrImKEqPOPiTTCQ571/6I8y3VRmT54dRnM4Yglu7Ghdd0pB WiY3YQcKr4b+semkQsgW74AhwCPwEAm+Ha4TgVgOmEaUdl+YcJ3bvRChda7tyowSO8IP Lr3opaUFu8glEzGZ4rQn/KQLI84Qd1G8LrZoQCrXzlVb0pZjrj5Ce3lIHMzZ4D+d8GDf 9th+10mQLoq30lnOACpgAorBWxxA0Twq1Jq+tRgB+zpa+gw+KUAhz8hVPEm0OhMFtdRa boFGqxq7YtRk+jXwfvxxaRl3iHP7AGAfchyzswJB/XDZmTUzVy/w+inff/TsO15d4bLx BCew== 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=LbzCYApGfMt4Rk0ELtpqDP7yrOQHE342mpHUk7D0pi8=; b=fEiUtYzqYmpeqtURVB5ih/+PYkJOjRAFUVWsuG0bMmQX2QDWIoHwJ1xNfWJk2ZbNGw f+YrUVTR/aL3KO5+jEkBmdvkcNefIQZ6n4zGOO8cU3CQSrlfhb9694XBzXMeQKkGVRI9 pGSSOmQbt+UFAzG4KL/Mi6/qqRINiDw5efVBvkLAWebjmsllZ5xUDKSHSPHefVHbg2FH V45/11YjmnlZKG41Hqwnl6+dSAe7Qxk9e4qoTKTGvnoHGNzIgoTzUFENiriaLN878Dy8 dHp6U/kR2dTx06gVC3hJ7aRh8mPVb9tZSNYjz65pJknftecS8Ex5cV72Pim1SjLyQus9 DGaA== X-Gm-Message-State: AOAM53287lCqnfFkn0iTJuJAgueZabDNCicC/N8wR+vmjRV6JyVknxzl VfEY2tWxNF+6YjBTRzRH6bAg6OGjr2D+iF2y X-Google-Smtp-Source: ABdhPJzgT8muNR8pVi9QhDMwVVKsxuo3jlL+CY+if+sy66Km6IjcmFftU2bdyhx4Y2m3Oqab5bI/8g== X-Received: by 2002:a67:de98:0:b0:32a:5e86:eb60 with SMTP id r24-20020a67de98000000b0032a5e86eb60mr3858251vsk.67.1650411210262; Tue, 19 Apr 2022 16:33:30 -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 d7-20020ab01487000000b0035cd4279012sm170481uae.15.2022.04.19.16.33.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:29 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:53 -0400 Message-Id: <20220419233214.275789-9-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 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 * gnu/packages/elm.scm (elm-time): New variable. --- gnu/packages/elm.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 053a2e62f7..0a296506ba 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -219,3 +219,23 @@ (define-public elm-svg library.") (license license:bsd-3) (properties '((upstream-name . "elm/svg"))))) + +(define-public elm-time + (package + (name "elm-time") + (version "1.0.0") + (source + (elm-package-origin + "elm/time" + version + (base32 "0wqa2vhl1zf8z0j2yd3yjwfhr0dydfns43bbzll3k4rhnjadxr1l"))) + (build-system elm-build-system) + (propagated-inputs (list elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/time/1.0.0") + (synopsis + "POSIX time and time zones in Elm") + (description + "This package provides an Elm library for working with POSIX times, time +zones, formatting, and the clock.") + (license license:bsd-3) + (properties '((upstream-name . "elm/time"))))) From patchwork Tue Apr 19 23:31:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38680 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 CAFB427BBEA; Wed, 20 Apr 2022 00:35:44 +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 90A4427BBE9 for ; Wed, 20 Apr 2022 00:35:44 +0100 (BST) Received: from localhost ([::1]:43250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxNn-0004sj-Mg for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:35:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMF-0003cT-0P for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMD-0001xj-8h for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxMD-00062K-5w for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 10/30] gnu: Add elm-url. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:05 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041122123061 (code B ref 55030); Tue, 19 Apr 2022 23:34:05 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:41 +0000 Received: from localhost ([127.0.0.1]:44451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLp-0005zt-5x for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:41 -0400 Received: from mail-ua1-f49.google.com ([209.85.222.49]:39523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLn-0005zR-UX for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:40 -0400 Received: by mail-ua1-f49.google.com with SMTP id i26so17437uap.6 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:39 -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=msCda9geoYludJ/IDcJEUg/4UIYf+Kx1vuJiS8AhNXI=; b=AXzbaBImucPpeGTP51Nl/vCTi0xPJaGeXDnKd51qvUXS12GYe6JUInWvySG7T7RDqB AKHWkyXsJ8A1jfkKoo+aX9gxfGSPOvVP7i9Dp7CAD0GSepg/uW8cw+56VWZaFCjl22yt +NL60CVcei67GDffLBxWCxC9ba1KVKdKFdxXXMmmxC7/LlkF0shdEeZkHar741+aYPa0 6yXAzaPlagPWlx0h34nX2xkVL4UnPEVNfkc5msgN4M87a+S6F0RwQoDx24ms+poK2nKf g8K8LKqBye/12jq9rPee9MSsW4+9u2wciFe8uN8oe8dH6Zxn90MkwSfjvl/jaxG5MpWi z2LQ== 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=msCda9geoYludJ/IDcJEUg/4UIYf+Kx1vuJiS8AhNXI=; b=KlgtkbQw9cVCV5vLcXBkRxIdaqHaz9R+NcYEEdqCLuZNbhxYPpCAbvSSK2a4hU1ut6 q7JnPLMjGZy0HRg9i8zPvmMz2C8ql22QJ/TpnFCnC6J55ys5E1wdr3xi9VY9gKyMw0DJ yJh3dk6JYvxBBngOHdJ2YZge+c7XEy9JOpSztyg28Nr4+11YAdw7HgFTW7SdlNNr/+lP BldEVHy0DhWRGRj5NqG67VCoR2TncqbI0FWPQVHzkzdsP5b/RePPSOwIPz09x/1Q7ouV BfI+ZjYghIARpvrCTKlV72ZO63NzXkhnu5zmkBUSZgpDN52S14JjA1uALHNzPp/yVXu2 NAog== X-Gm-Message-State: AOAM532UIJFsrAveSe4+zRGAlU10dsrmAx7OAMNFm6+rE3J0epbJ5VO+ RRZT/ow1DNIF8mqscobAFrcxa0bPrkJ74it6 X-Google-Smtp-Source: ABdhPJycja1KVv4vYNl/u49PRZSQAsSCd4Fz1lA74i7UJJqdTu0/Y4s8S4H5ED/2c56KDi1rfEdH+A== X-Received: by 2002:ab0:144b:0:b0:33c:76e0:9006 with SMTP id c11-20020ab0144b000000b0033c76e09006mr4752641uae.52.1650411214541; Tue, 19 Apr 2022 16:33:34 -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 d13-20020a056102222d00b0031b437600fasm185484vsb.14.2022.04.19.16.33.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:34 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:54 -0400 Message-Id: <20220419233214.275789-10-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 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 * gnu/packages/elm.scm (elm-url): New variable. --- gnu/packages/elm.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 0a296506ba..0116ffc1e9 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -239,3 +239,32 @@ (define-public elm-time zones, formatting, and the clock.") (license license:bsd-3) (properties '((upstream-name . "elm/time"))))) + +(define-public elm-url + (package + (name "elm-url") + (version "1.0.0") + (source + (elm-package-origin + "elm/url" + version + (base32 "1f2ij4i7zmijnj2i50qf19lpkr14bhms8dkq029inb5mydi9f8gs"))) + (build-system elm-build-system) + (propagated-inputs (list elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/url/1.0.0") + (synopsis + "Create and parse URLs in Elm") + (description + "This package helps you: + +@enumerate +@item +build new URLs; and + +@item +parse existing URLs into nice Elm data structures. +@end enumerate + +Use it for HTTP and for @dfn{routing} in @acronym{SPAs, single-page apps}.") + (license license:bsd-3) + (properties '((upstream-name . "elm/url"))))) From patchwork Tue Apr 19 23:31:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38685 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 1C29127BBEA; Wed, 20 Apr 2022 00:36:13 +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 DA92C27BBE9 for ; Wed, 20 Apr 2022 00:36:12 +0100 (BST) Received: from localhost ([::1]:44322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOF-0005po-SL for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMF-0003cV-0w for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMD-0001xk-LL for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxMD-00062T-Ii for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 11/30] gnu: Add elm-browser. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:05 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041122623079 (code B ref 55030); Tue, 19 Apr 2022 23:34:05 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:46 +0000 Received: from localhost ([127.0.0.1]:44454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLu-00060B-E7 for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:46 -0400 Received: from mail-vk1-f169.google.com ([209.85.221.169]:39460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLs-0005zl-ML for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:44 -0400 Received: by mail-vk1-f169.google.com with SMTP id s68so29807vke.6 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:44 -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=RbD+PoWl+hjDkJnVQDsST7tE150ASZyScsK+mD9WhDI=; b=c0cZkv0raC509p/KZbLAEmYofYUPVPWL9GNA6sd1apCvCmX/Q9jiVaNVQWJnrmuRuR Iy5/GhtRLD+MyjYm6Hc/9RSGEgaheTeHxSTH8H3RQRg9MNKqe5ZpzYCcSCCvV2zpsMB4 leAcLOA+8bIFTVpXw7qbPHTGKUfwtqu/QLPVsjV0/wPl9ygXpzDvbIPZ8OEcHaao6qUN c9yBhduhw1xuzjuROZS9CLS1S0szLbvKIQXYjcM88eJcs5BEM/C7DQ99T3KTbYCfcxad HEsuJ6FF0b3wx2GTOes8iUJq1OMC12m1alispv6FDqhmYTyHuHnTxtUP7KuypL4SLRpE v9VQ== 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=RbD+PoWl+hjDkJnVQDsST7tE150ASZyScsK+mD9WhDI=; b=7D6KQrZgeNiy32tNinrarhsuuPHpkiryUe09tKXCWHK0L9PzqOKyDwstCmeYkafgKI 3o4s6OYZ4/Lm3/EocVUy0gDCSKIVU4/LlJOQu1ViL3GhIfoyP2pzUYgKlkaV3q0JQLMT 0aBAQIk6mGGltn3lg36PnMDw/6owXzwGSziS9Slx/2rI24MMPi/CYEQQH+2zsyj3YbY2 AWWNk5NkcuNhx/7gEEWicxKvfOA7ZXFZ9ecp9PMiINd2AFUOAj+cKqQ9Ggrwn0lvd7Jr rMSSO/ugyWN+yQ4TG0wkhnmxQoNgR9ExTwncW2DDiXUYDC4hgShnGfE2KLva7Jr6PenW +SRw== X-Gm-Message-State: AOAM530RgQx/KFCJanqIfXOkE/Z57nnsa/sy0kNQCvnguXKgtHwy0sX2 bc0ZbJ8/o7e1fr8KILec6nG/lDURHU/xNwqv X-Google-Smtp-Source: ABdhPJzpqiyOLffT13r3TkBIz39Hp7p9kyRKxS1Iyq1BQO7HRMlsKwiPaJSwIwZX31p8yBqUma83nw== X-Received: by 2002:a1f:1b56:0:b0:345:4d97:a2e7 with SMTP id b83-20020a1f1b56000000b003454d97a2e7mr5332903vkb.31.1650411219145; Tue, 19 Apr 2022 16:33:39 -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 x188-20020a1fc7c5000000b00349855c860fsm176305vkf.32.2022.04.19.16.33.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:38 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:55 -0400 Message-Id: <20220419233214.275789-11-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 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 * gnu/packages/elm.scm (elm-browser): New variable. --- gnu/packages/elm.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 0116ffc1e9..114cb231a2 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -268,3 +268,29 @@ (define-public elm-url Use it for HTTP and for @dfn{routing} in @acronym{SPAs, single-page apps}.") (license license:bsd-3) (properties '((upstream-name . "elm/url"))))) + +(define-public elm-browser + (package + (name "elm-browser") + (version "1.0.2") + (source + (elm-package-origin + "elm/browser" + version + (base32 "0863nw2hhbpm3s03lm1imi5x28wwknzrwg2p79s5mydgvdvgwjf0"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-virtual-dom + elm-url + elm-time + elm-json + elm-html + elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/browser/1.0.2") + (synopsis + "Run Elm in browsers") + (description + "This package allows you to create Elm programs that run in browsers, +with access to browser history for @acronym{SPAs, single-page apps}.") + (license license:bsd-3) + (properties '((upstream-name . "elm/browser"))))) From patchwork Tue Apr 19 23:31:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38679 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 20BE327BBEA; Wed, 20 Apr 2022 00:35:36 +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 DE92927BBE9 for ; Wed, 20 Apr 2022 00:35:35 +0100 (BST) Received: from localhost ([::1]:43114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxNd-0004mk-Sf for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:35:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMF-0003cW-1T for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxME-0001xl-4Q for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxME-00062g-1Q for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 12/30] gnu: Add elm-bytes. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:05 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041123323099 (code B ref 55030); Tue, 19 Apr 2022 23:34:05 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:53 +0000 Received: from localhost ([127.0.0.1]:44457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxM0-00060U-N0 for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:52 -0400 Received: from mail-ua1-f53.google.com ([209.85.222.53]:37687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxLx-000603-OD for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:51 -0400 Received: by mail-ua1-f53.google.com with SMTP id f7so19802uap.4 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:49 -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=0dh5cejmeJJA7ns5XiG+OtoM+K4N+i8o+yGGMjWNSPo=; b=FdQD8tiMaz5CmF1RRZKI9yTfbdwjj30J8naZG0JEcDBs58ZnCJm9yWQwHeu74XyfPE btWpzdGl5H6x8YTMqWqHHwk9GIh9kg4JWYXUL7vgDwTRnJqzakTLfsMVaDGaCugrU0rc uErEOCZA53thXNZ2K9buoL4OGOksijhlys+OWXkxQz2UhPhrigreOZIRc1TGp4R+7bNP ZsKYfpPGCHytP3v7wpD71admKI2MxwMeZ6Pg5y44q0A2L6yvrPd7HVvErDe5cILSWNnN zbog9bnYo/o36Usx5F26P61iRBsOfPkmeCxh2Q0Pro0Se2XewWdAGaDZqkxQnw57YfMy YWcA== 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=0dh5cejmeJJA7ns5XiG+OtoM+K4N+i8o+yGGMjWNSPo=; b=TsiN1/+rXJgb1HFRgGMDY6210P+4wWwTGLuYm6syV3ujzSI5m8V5gv3DV3/Wrsy3Ah FUCvf08CU9il3XvqBsbXJUQH2z6B8zVsN7Vrm7sDKEFL/lbPx4YlsrlmL87M/NGzFVjp qi7k8vRbU9QTjMNzXYtC4F0xicDEVooRrkNtVPU3eY2od4EXPbDmCZs9BKPRGkDAkHlY lSVwsEXFJDprCHei1sTgj6Ckexw0ecBcRtfPAqMieYy9Z6vuXJTB8RcmbO7vEjpl2gZc Q8JU6PiQRSSQmVbaeK4IiikXpydXmWiQ0eLKsnwQMYqkdiP556OzGrvVmM8/Ac0GiFsQ lxog== X-Gm-Message-State: AOAM5329ZM7WKAk8AA7S3GvR6nm6Y4go/bOQGr6VB6biaAk+9fun74/P RDCidUBa88q99xXkCmY5gFiv6CpDI6UGdTEV X-Google-Smtp-Source: ABdhPJxWn0w6clBS1GnWL4UWq4jwtS41VQ7+5Hslyws19p1Nxrmjf/dvw5cgdFh3nMDGr75Bn+5cuw== X-Received: by 2002:ab0:7541:0:b0:359:eb0b:8162 with SMTP id k1-20020ab07541000000b00359eb0b8162mr5099474uaq.15.1650411223924; Tue, 19 Apr 2022 16:33:43 -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 q187-20020a675cc4000000b0032a352f80dasm178617vsb.15.2022.04.19.16.33.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:43 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:56 -0400 Message-Id: <20220419233214.275789-12-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 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 * gnu/packages/elm.scm (elm-bytes): New variable. --- gnu/packages/elm.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 114cb231a2..8d6a98962e 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -294,3 +294,22 @@ (define-public elm-browser with access to browser history for @acronym{SPAs, single-page apps}.") (license license:bsd-3) (properties '((upstream-name . "elm/browser"))))) + +(define-public elm-bytes + (package + (name "elm-bytes") + (version "1.0.8") + (source + (elm-package-origin + "elm/bytes" + version + (base32 "0n411j2cyz9m241q6vszfzpq3fraradwal5m0gigp2505mdfpz3x"))) + (build-system elm-build-system) + (propagated-inputs (list elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/bytes/1.0.8") + (synopsis "Work with sequences of bytes in Elm") + (description "This package provides an Elm library for working with +densely packed sequences of bytes, such as @code{ArrayBuffer}, typed arrays, +and @code{DataView}.") + (license license:bsd-3) + (properties '((upstream-name . "elm/bytes"))))) From patchwork Tue Apr 19 23:31:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38678 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 1C93F27BBEA; Wed, 20 Apr 2022 00:35:20 +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 BD66527BBE9 for ; Wed, 20 Apr 2022 00:35:19 +0100 (BST) Received: from localhost ([::1]:42832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxNO-0004aO-Tf for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:35:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMF-0003cU-04 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxME-0001xm-Gv for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxME-00062o-DZ for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 13/30] gnu: Add elm-file. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:06 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041123723115 (code B ref 55030); Tue, 19 Apr 2022 23:34:06 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:33:57 +0000 Received: from localhost ([127.0.0.1]:44460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxM5-00060l-0i for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:57 -0400 Received: from mail-vs1-f45.google.com ([209.85.217.45]:38448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxM2-00060M-Sg for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:33:55 -0400 Received: by mail-vs1-f45.google.com with SMTP id v15so44326vsm.5 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:54 -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=FRdFmp/p6AxJ4f2K0L++QoWVgA0LR2cesoqkWEIHVXM=; b=TVSktGLPY1YCMvDwtGhE7s4x6KeW2EWT2/XU9vWn7/xDFfv335C8hXgrsemcPEIRS+ rsQo7sfsB6y8zKxEohY+aJC5hLctbEloQAY862/a29IKM9oKXKqB2TRuKyfdXNPGaac+ T/wu76ZkjcE1XZLKS9VX1c6xlbRl8krRROwta6zN9z+QmDMrbVq/BYiERFAG03bdHU97 fepN3h6hcxZMDDmDvBWrReCppEW0ctSxKFPYVgRrYaPrqvhemb13rMalfnOwNsE6Uz8G LkZ0NoFrjeQNJLCYwa5WXCIXLSAbL1T1yzoGqVrYrm9GvHXH+bLeF1oIwnx+8b5Crr2R lwig== 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=FRdFmp/p6AxJ4f2K0L++QoWVgA0LR2cesoqkWEIHVXM=; b=eVYf796f3srJWdMGNua6HtmkDnsdsNo1QyK3aqRI4Vhd8SgX0F5/qce4S60vU4XVf8 PkIEG90qAxcA1qYmx/ErJ2sprY7wH0Wl9KaR2KQhhTx120Qzd5aLHsFhwrJCVwlTpVCh 6i7zMsKDu+a68ZY+bYLewP5RJcwcwu1bGXZ9NWwUYevFNmEBOSprTPwC9UdxQybYhT3w x9w9ditc4CDWJzvsktmR+MFP4FCB/r+SbmmKEzSETu4mu3vR3ZJtVPES9eNAyuhNJzyo tz8M1G3cbtVXDgkrkIQABMsLa/Alj3VCqauNQV+QvX9m2ogRGFtooZBSgpaRpSkkye+k kaFg== X-Gm-Message-State: AOAM532FEGkBTAsDiI26CHpwCWBhfoMY5sm3Gp4+rVFPtqj77ALsuZST LPcnN1ExUFYxsrgLPVp+rqIoH3g0QOLRdyBl X-Google-Smtp-Source: ABdhPJzlfKX+Vl1ypyuWNX41l7LlDUH/rQ7CycLIoDWYrpEw7TreLMRigpRuxkPNy3vPpZi1NKIRyw== X-Received: by 2002:a67:f842:0:b0:32a:492e:332e with SMTP id b2-20020a67f842000000b0032a492e332emr5120382vsp.47.1650411229026; Tue, 19 Apr 2022 16:33:49 -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 m6-20020a0561023e8600b0031bb1803345sm184068vsv.6.2022.04.19.16.33.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:48 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:57 -0400 Message-Id: <20220419233214.275789-13-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 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 * gnu/packages/elm.scm (elm-file): New variable. --- gnu/packages/elm.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 8d6a98962e..0099adca90 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -313,3 +313,25 @@ (define-public elm-bytes and @code{DataView}.") (license license:bsd-3) (properties '((upstream-name . "elm/bytes"))))) + +(define-public elm-file + (package + (name "elm-file") + (version "1.0.5") + (source + (elm-package-origin + "elm/file" + version + (base32 "0aimgicrdpys0v89m2wjx413561zil14cczjh6mkn9jcgckx6yng"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-time + elm-json + elm-core + elm-bytes)) + (home-page "https://package.elm-lang.org/packages/elm/file/1.0.5") + (synopsis "Work with files in Elm") + (description "This package enables Elm programs to select files, download +files, and work with file content.") + (license license:bsd-3) + (properties '((upstream-name . "elm/file"))))) From patchwork Tue Apr 19 23:31:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38673 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 825BA27BBEA; Wed, 20 Apr 2022 00:34:22 +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 52C2827BBE9 for ; Wed, 20 Apr 2022 00:34:22 +0100 (BST) Received: from localhost ([::1]:41528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxMT-0003ge-GU for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:34:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMF-0003cw-8Z for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxME-0001y1-V1 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxME-00062w-Rp for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 14/30] gnu: Add elm-http. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:06 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041124123135 (code B ref 55030); Tue, 19 Apr 2022 23:34:06 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:01 +0000 Received: from localhost ([127.0.0.1]:44463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxM9-000612-9D for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:01 -0400 Received: from mail-vs1-f47.google.com ([209.85.217.47]:42621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxM7-00060d-Do for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:00 -0400 Received: by mail-vs1-f47.google.com with SMTP id i186so30854vsc.9 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:33:59 -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=CkpbTW1lqx1X62V9JaR43rWwlm4jKUhO6z6eTGiyxy0=; b=etVzjUrz0hE9LHsq9Lf19J0UVLcS1PAebpsu5J32l8ssZQUzSnAz8hOO9fLZUK85WY SQ2Vm5uqgsCbvb+QZwrsMJrZWF8PeJW+pUWxS7LBrQcEEMQforFGSt+T54JiSDnM8DnV fFgPzQE4HGMzUUjGBw4UZo+Dj6SdK9X3CntrsbWvpow+zBJuUmmqIbL3jAmNJVKnWohF DkuB8G/3PJRTg9qFkNZy8BwCZSs5HT4uku4jnuY6rnIf4RsH2caxJITEVkv3bEOi5d61 uaFYdtVKxXbBt5Pifz4gfF0WkogMQwcxBJZ9YugUDRQssBJjAYHFszc4n66NBNLqRZxW zhtQ== 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=CkpbTW1lqx1X62V9JaR43rWwlm4jKUhO6z6eTGiyxy0=; b=XBwPZbJOxanj5JZNf2kfvV6K04fb8GBgB5/r7+ruQjZd0XFyht8rWKI7DfjMHQnVi7 6jloMIi38RN44U2Huvso4TmQfRhmvX9Zh53pTaK9WcRx0gcm14JLacsNaoT9jAiP9tKK ZNMTgIHIbMaM03mTcwvqDzDbA710mTqtHuMpxu9WFaFw1OF0nWlR0SBy4gk4+dZH4mxE iXCzuDNdaZHbzk44TNNClu2dg6L2TrdGz1xcjMZaOESmq4AXHrWaYpU7GmKFoFkeOZUB ruWumjWyaiqYtMcIVUtENHWyI2S2ZiImmGIEUTw03/v40X+zmmFX79zoOnQWkm89hUr9 79/g== X-Gm-Message-State: AOAM533WG+pkWdEu2S5kWOUPuCI0jl9x+5YN9GnUAxtby0XmiLOKwVCD /ZnuVwGBbGrwbZP9ugMQ6nRYR/APgvDSwJXM X-Google-Smtp-Source: ABdhPJwKGlalB6ytP/OQbSkl11fm9ZYKD5eaNuiU/t+PS1ba0dhvvOQRqNQw3BcMSgT7qNX6BagaNQ== X-Received: by 2002:a05:6102:309c:b0:32a:4f43:9b84 with SMTP id l28-20020a056102309c00b0032a4f439b84mr4428376vsb.31.1650411233895; Tue, 19 Apr 2022 16:33:53 -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 i2-20020ab03742000000b00360062f041csm222657uat.32.2022.04.19.16.33.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:52 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:58 -0400 Message-Id: <20220419233214.275789-14-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 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 * gnu/packages/elm.scm (elm-http): New variable. --- gnu/packages/elm.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 0099adca90..6a9cac8553 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -335,3 +335,26 @@ (define-public elm-file files, and work with file content.") (license license:bsd-3) (properties '((upstream-name . "elm/file"))))) + +(define-public elm-http + (package + (name "elm-http") + (version "2.0.0") + (source + (elm-package-origin + "elm/http" + version + (base32 "0mfbz0lkfidmq5xpv5csw8943q0yrpvj0rwd2vb0gc8rbsfc9dg8"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-json + elm-file + elm-core + elm-bytes)) + (home-page "https://package.elm-lang.org/packages/elm/http/2.0.0") + (synopsis "Make HTTP requests in Elm") + (description "This package enables Elm programs to make HTTP requests and +talk to servers.") + (license license:bsd-3) + (properties '((upstream-name . "elm/http"))))) + From patchwork Tue Apr 19 23:31:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38683 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 0C7CC27BBEA; Wed, 20 Apr 2022 00:36:10 +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 CE1B727BBE9 for ; Wed, 20 Apr 2022 00:36:09 +0100 (BST) Received: from localhost ([::1]:44108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOD-0005fB-0j for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxMF-0003dF-Kv for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxMF-0001yF-CY for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxMF-000633-8y for guix-patches@gnu.org; Tue, 19 Apr 2022 19:34:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 15/30] gnu: Add elm-parser. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:34:07 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041124623227 (code B ref 55030); Tue, 19 Apr 2022 23:34:07 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:06 +0000 Received: from localhost ([127.0.0.1]:44475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMD-00062S-HM for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:05 -0400 Received: from mail-vs1-f41.google.com ([209.85.217.41]:40736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMC-00060u-Ag for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:04 -0400 Received: by mail-vs1-f41.google.com with SMTP id v133so37621vsv.7 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:04 -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=FMNRiHy7fqXIgdCFNllTL0izsg9EEvzpD1E6BPR5gjc=; b=DqoDcAjhA2k9lnzO4o6FAtPGsYkPdegrckACday6rjduRmOsnY+lZakYORruvsO/SI KajeyZDIQEq6t1eM0GLWIpVzD2wuMWPl0GLMGsMSOjUOtoQ5MLjyG0Urgmn3/d2l9K3i hVYAdxk+g9IqWUxnI85tL/5n963OLHwsx1ETOqHBH9SFIk5g1UymjgDdBKjvfoeuz94l rALinggFDBhaEzLwW0YGXO/bnNVS+bjBJkdHry4XMDXdOlAQeTjVuh2K1ZR0T1HjcGd1 ebV1os+O0nAzC3ofAuws3aGzi680g0oe8Gmds4hGOKykMXDdsTZEQaUBr9QVCWmVaG/L VQVg== 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=FMNRiHy7fqXIgdCFNllTL0izsg9EEvzpD1E6BPR5gjc=; b=3lvtUNLYS+PisE1x+hKOBbh2HD7YZfc7+gMcvhx/IDFmpRMCchRP6RGZxnU18HW2Ls hyPUJ89jVbOg5pUEDQ+T42/6MsqJkA09Kv9r5B9qlH6B4vB5r/Co9+u4fe+T4/Rzzdce qJZrxKxWw81bWAPjA6zU2NEide0OGrbwX8amdY//maigniVpT1vdXWENqzfTNh2bwlif ZOUcDx7VC9FK57TNBZTH303tGEV/WdFBkKSx8sEo4oo6FXBlKgwEhs2feqUNQqRTa1aS 7UL3cXO9fZqyzAfMNIOigpnBKT+8w01GztgnrGbXc3oH3nqxm5N6+C7vSEfkOPeNPFUy VBdA== X-Gm-Message-State: AOAM531SN6Z2mCaWkLaDGZeGi0qTsglhyNJZmi6SldV3BuNcCORKmd3F EY20zu6YM/vLXed9cBmSnsXCDFg0ESLeZrEA X-Google-Smtp-Source: ABdhPJzfRdmyyiVQcFwiWiguc6AwBWc6GId7xc2P7O8Z/JN5pqUJmhXxee+WBnydfJNmmITSEQ5N5w== X-Received: by 2002:a05:6102:1176:b0:32a:3b0f:2419 with SMTP id k22-20020a056102117600b0032a3b0f2419mr5156965vsg.35.1650411238797; Tue, 19 Apr 2022 16:33:58 -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 v24-20020a67f6d8000000b003208cfd16d5sm181351vso.33.2022.04.19.16.33.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:33:57 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:31:59 -0400 Message-Id: <20220419233214.275789-15-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 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 * gnu/packages/elm.scm (elm-parser): New variable. --- gnu/packages/elm.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 6a9cac8553..512b4fc01c 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -358,3 +358,24 @@ (define-public elm-http (license license:bsd-3) (properties '((upstream-name . "elm/http"))))) +(define-public elm-parser + (package + (name "elm-parser") + (version "1.1.0") + (source + (elm-package-origin + "elm/parser" + version + (base32 "06xx29rmagc5r45qfpvrd393lz83ylngidfp08432f1qc8y6r3lh"))) + (build-system elm-build-system) + (propagated-inputs (list elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/parser/1.1.0") + (synopsis + "Parsing library for Elm") + (description + "Regular expressions are quite confusing and difficult to use. This +library provides a coherent alternative that handles more cases and produces +clearer code. It is focused on simplicity and great error messages.") + (license license:bsd-3) + (properties '((upstream-name . "elm/parser"))))) + From patchwork Tue Apr 19 23:32:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38689 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 6F77F27BBEA; Wed, 20 Apr 2022 00:36:35 +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 3C9C727BBE9 for ; Wed, 20 Apr 2022 00:36:35 +0100 (BST) Received: from localhost ([::1]:45516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOc-0006dS-DV for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050c-Qf for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxN7-00027i-Op for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxN7-00066y-MY for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 16/30] gnu: Add elm-project-metadata-utils. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:01 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041125123284 (code B ref 55030); Tue, 19 Apr 2022 23:35:01 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:11 +0000 Received: from localhost ([127.0.0.1]:44483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMI-00063U-Qz for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:11 -0400 Received: from mail-vs1-f51.google.com ([209.85.217.51]:38471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMH-000627-Ln for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:09 -0400 Received: by mail-vs1-f51.google.com with SMTP id v15so44744vsm.5 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:09 -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=BIKq3L3K3Y0IgZOnG/0MQvUlZfFMfxkvhZvcPCmo2Bg=; b=Ox6WVupacNY3Dljs0ZCEeL/P/kkLGMP5ttbawtwfEdToqWSmjh4HZ/n8w9r1BWxbPr pQomshLc0CdBydT+z8HVmaSuJt2AeXyCsqPykMvBydnEO/LwZChE9W0ROdpigjv9ND0J IoNdARiIELWT25QdFp9KNyNgA+fkrZz9jkEAtYCjzlpIpYWiFExn4EswNjdN1Bq9yq9U AcsCXtNNPiC7+9F3qPTCLqMhlvSjKXBHyD0NoPJCclv1MzDhkKBMZYVbVbSG9wY0LOX2 Ek7kQXMfRqiFNhNrTJmWUqUDQPk1vG67MjIt9QIoHJCgOAlDjkyEoN33/KXibLysYkhP JLWA== 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=BIKq3L3K3Y0IgZOnG/0MQvUlZfFMfxkvhZvcPCmo2Bg=; b=pqxler1GHRyjsW51/+yJGCMuYzEWe4FVoFuvHFbCIaEkLoXN+WMjk58kACFPFBare2 qDv3LtOkfFu29vBdfGQnmGlHHVSGWl1B/b87/U/bipo8WQsLMzet+Ww5PUu4tw3gyFOl 3G3vU/MVc4xSgVewlMycTOD8PPDiZ64fKL4tBcSod2uF0zQ2G4bOZTXeCn1uSBhqngVi ckaXK/MwVjmPWA3Y1iAHzDWvZPzosjYb4xVWQrpxTPfbm+i3bIXqdB/yd5PRNak9LWGJ /pYf7nAOBY2GmERsDV1a/Ck2fPYQCu74GgoufdZbNost9Z2h1PSxDIdHpwTakW7D621J Wl+Q== X-Gm-Message-State: AOAM530FVow1FiMXnOMjO5TdZBwr6bpfY1egJ+4yzZ99gwVtenlSKZ+S aW6BrpQ85BHrqBfFqkOhTg1d+X/T8OAHBxKs X-Google-Smtp-Source: ABdhPJyUkUAQdhtpcYNVv2u7kKJbAtS008Fh6CJSVyniGIUW8LipJnOUkqT4kf94fgoNH70DtQNweQ== X-Received: by 2002:a67:ec0b:0:b0:32a:355c:c633 with SMTP id d11-20020a67ec0b000000b0032a355cc633mr5412665vso.37.1650411244230; Tue, 19 Apr 2022 16:34:04 -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 j3-20020a05612212a300b003497d7b77ecsm177050vkp.14.2022.04.19.16.34.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:03 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:00 -0400 Message-Id: <20220419233214.275789-16-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 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 * gnu/packages/elm.scm (elm-project-metadata-utils): New variable. --- gnu/packages/elm.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 512b4fc01c..58bcf322d9 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -379,3 +379,27 @@ (define-public elm-parser (license license:bsd-3) (properties '((upstream-name . "elm/parser"))))) +(define-public elm-project-metadata-utils + (package + (name "elm-project-metadata-utils") + (version "1.0.2") + (source + (elm-package-origin + "elm/project-metadata-utils" + version + (base32 "1wj7chfy4knwwyc3k0hy431c80hs7hc686qsr34ayn8gip73x2jj"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-parser + elm-json + elm-core)) + (home-page + "https://package.elm-lang.org/packages/elm/project-metadata-utils/1.0.2") + (synopsis "Work with @file{elm.json} and @file{docs.json} files in Elm") + (description + "This package is meant for people creating Elm tooling, like editor +plugins. If you just want to make stuff in Elm, there is nothing here for +you.") + (license license:bsd-3) + (properties '((upstream-name . "elm/project-metadata-utils"))))) + From patchwork Tue Apr 19 23:32:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38697 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 AE59827BBEA; Wed, 20 Apr 2022 00:37:29 +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 6250927BBE9 for ; Wed, 20 Apr 2022 00:37:29 +0100 (BST) Received: from localhost ([::1]:47754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxPU-0008B2-K5 for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:37:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050d-Qb for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxN8-000280-Ev for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxN8-000677-AY for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 17/30] gnu: Add elm-explorations-markdown. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:02 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041125623307 (code B ref 55030); Tue, 19 Apr 2022 23:35:02 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:16 +0000 Received: from localhost ([127.0.0.1]:44486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMO-00063q-3X for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:16 -0400 Received: from mail-vk1-f175.google.com ([209.85.221.175]:34811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMM-00063M-0Q for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:14 -0400 Received: by mail-vk1-f175.google.com with SMTP id b81so38770vkf.1 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:13 -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=DcSBaSzoIXpBvQm3r+GC0U+2kg+ngtc8s65D1tWjwl0=; b=A0mST4yx4k4RRtLph9gGXT4gz5HpIU3cCHXAiKs3dgZqA3Tprnl5cuhohsrlF3xf2k W8svPXIawRVWHN6CBmN/3HOAiB2mTiEc7Fw+NIxSGXfpiJWMnuAxTODIklaNlR7W8Qpk 9yOgoDwIj0VKF6Hd5KwYg1u1KjdzQjjYAp5X8v/RMnK+4K45oERiCOSrGbva51y/v+kM W26YhI6CUMQD1uHAJjyhqwhbTPD2AioFOQJmvI25h3E/loPEFtXl3yCUidZbzoj5JN/M OcB9+JegHBA51c5QTEl0XIIM0gdjIFMexRA5iG2jf7tUskJK7e26kXzAQzR/F2JbFJCN UuWQ== 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=DcSBaSzoIXpBvQm3r+GC0U+2kg+ngtc8s65D1tWjwl0=; b=rnFOj0XGQ5+NmTv4wUkh04sBW5uQHXSSfUlIYr0eLkXmQVw9/f/RlEuj3CHdZSWnjo D/29z3yP9MP0gq1O/d8foEfzmn8uk0yCusltyUwKv60e6tEJPmSIiv8JJjQAa3sJ2hu6 FEx6E45jaxC2FbXu9Bw9pQjTcDj5XlXoCaJ8MCxH3KX1UYKBYnxJOwEyilvJU8AqO7pe biHjRJgNMgErLEQU5iDnJAYQl0xirG4jYb+PIDqfy7DnNw/nypl2rgETKtYufBFkYEOl hhmWo0QAf1bZ/7Jg5EnXw3sekPgfxkGCuZv6rW6x4V8c97a6g9SyVwk3KyRoWDx/T6iI dfMw== X-Gm-Message-State: AOAM531KqgUq84qNnYJDEnEbkwbgy3h/Ti33bfC9QvTpfbAfAKZYUElf wRmXKjQ8zVsz81cpTwWCJPerNkOdp+78nBuu X-Google-Smtp-Source: ABdhPJz7ZWUcxCyyY4kgrInqpItBz0g1T6gv14drt+u47mq7MVK8CIOmIDQxntqsvEGbogdfPjlizg== X-Received: by 2002:a05:6122:2229:b0:32d:1642:b58b with SMTP id bb41-20020a056122222900b0032d1642b58bmr5204322vkb.27.1650411248417; Tue, 19 Apr 2022 16:34:08 -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 v13-20020ab0678d000000b0035ce198a740sm176175uar.5.2022.04.19.16.34.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:08 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:01 -0400 Message-Id: <20220419233214.275789-17-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 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 * gnu/packages/elm.scm (elm-explorations-markdown): New variable. --- gnu/packages/elm.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 58bcf322d9..53e250ee22 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -403,3 +403,23 @@ (define-public elm-project-metadata-utils (license license:bsd-3) (properties '((upstream-name . "elm/project-metadata-utils"))))) +(define-public elm-explorations-markdown + (package + (name "elm-explorations-markdown") + (version "1.0.0") + (source + (elm-package-origin + "elm-explorations/markdown" + version + (base32 "1f57ikdpbbhchcpwj32216gxjxijrc3sdpg27s1cgzia9pnkqk6p"))) + (build-system elm-build-system) + (propagated-inputs (list elm-html elm-core)) + (home-page + "https://package.elm-lang.org/packages/elm-explorations/markdown/1.0.0") + (synopsis "Fast markdown parsing and rendering in Elm") + (description + "This package is for markdown parsing and rendering in Elm. It is based +on the @code{marked} project, which focuses on speed.") + (license license:bsd-3) + (properties '((upstream-name . "elm-explorations/markdown"))))) + From patchwork Tue Apr 19 23:32:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38692 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 AC2FF27BBEA; Wed, 20 Apr 2022 00:36:46 +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 2701C27BBE9 for ; Wed, 20 Apr 2022 00:36:46 +0100 (BST) Received: from localhost ([::1]:46218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOn-00075b-6V for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050b-Pn for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxN9-000284-3L for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxN8-00067L-VO for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 18/30] gnu: elm: Support 'elm reactor'. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:02 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041126123325 (code B ref 55030); Tue, 19 Apr 2022 23:35:02 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:21 +0000 Received: from localhost ([127.0.0.1]:44489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMT-000649-CD for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:21 -0400 Received: from mail-vk1-f174.google.com ([209.85.221.174]:42552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMR-00063e-4K for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:19 -0400 Received: by mail-vk1-f174.google.com with SMTP id c4so24347vkq.9 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:19 -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=gw9YjJ+KwmvB6S3vZj70ONpdT4D1gMkaDHIdaVQUayo=; b=MRFztm7uziS3pRwMAx/bF4G0tegaYBXLVuCfIc+63ADZar8LFqUihAX91FCzk+zcvi AoiMpG/0uvHiNUCxbTemaDiJMrtLcN4yB6eJ3W5bMLU84BH4PAqvoGKICAs4J4/L90fu fh2DIpFIumyxhCGYR0ubr9sRJqu99cw5HACXdlwQm7Wbx1f1lYHfYn8WtE6yBVZZCgo3 6UB7eczr0/U5j5jHy/i0YDALBgYAw6x8W7vcD1ld0TAJpz1gsR9j811bExB36Kmndgx7 hChqQjYNvZgG0b/vaRuqd8Tp3ZDIxFPqf6riBrsh+4Dn24XnCPvPQ4eYyaQ8Ht0wqUqV vGxg== 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=gw9YjJ+KwmvB6S3vZj70ONpdT4D1gMkaDHIdaVQUayo=; b=Y7ugfY9wGQUN4NOD9lCqLa54UT5TqC3TcNeu1079ukydCuG6rbBRm8AMpyxrwFl/pq Q10mhUiAYOrbFM7pzCwuaE/7Vr9TFRUOcTTdUCO+pgn2JLB1c5HZnQJEKuoTXU9KQDgL AvczgrixwGVG8drb9NsTdimljdlp2jZM2OPrYGYn0oha3iYeVTTRWxrN9CEnQvX7q68q TZSGTgoNMSiaToRctzKGfopiDz2jjj+p44EsyR2WI4qlmRvvTVgfs4e5dZjRUwyi4tTS N7OPkXJA4nZrhOUktkkeLL1lg6sxaJRW/UKqav5/NeVixSwYc2ZPK9X/L3ZKhY+Pcxa+ oGYg== X-Gm-Message-State: AOAM530Fqk1kLiZPPqc2AAEwAAgTml+tFBkVm3zVG9/LL9dnafcJxauD vuR5U2a9GnyRRTCgg6MVQpOhWE+NMwh6M8XQ X-Google-Smtp-Source: ABdhPJwJzDP53FTaVKVrvDGRSIBcN6LlfV/GIcuYY/re3tD+C9f47ZkFQgPJLImD2WAUADhkJBOrmg== X-Received: by 2002:a1f:9c09:0:b0:344:fe68:fa84 with SMTP id f9-20020a1f9c09000000b00344fe68fa84mr5559134vke.8.1650411253593; Tue, 19 Apr 2022 16:34:13 -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 16-20020a056122089000b0033226f398e6sm178389vkf.33.2022.04.19.16.34.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:12 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:02 -0400 Message-Id: <20220419233214.275789-18-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 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 * gnu/packages/elm.scm (elm): Rename to ... (elm-sans-reactor): ... this new variable. [synopsis, description]: Tweak. (elm): New variable. * guix/build-system/elm.scm (default-elm): Use elm-sans-reactor. --- gnu/packages/elm.scm | 75 +++++++++++++++++++++++++++++++++++++-- guix/build-system/elm.scm | 2 +- 2 files changed, 74 insertions(+), 3 deletions(-) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 53e250ee22..4181322393 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -40,9 +40,9 @@ (define-module (gnu packages elm) ;; `elm reactor` exit with a useful error message if they aren't there. (define %reactor-root-base "share/elm/reactor-") -(define-public elm +(define-public elm-sans-reactor (package - (name "elm") + (name "elm-sans-reactor") (version "0.19.1") (source (origin @@ -93,6 +93,77 @@ (define-public elm ghc-vector ghc-zip-archive)) (home-page "https://elm-lang.org") + (synopsis "Minimal variant of @command{elm}") + (description + "This package provides a version of the Elm compiler without support for +the @command{elm reactor} development command.") + (license license:bsd-3))) + +(define-public elm + (package + (name "elm") + (version (package-version elm-sans-reactor)) + (source (package-source elm-sans-reactor)) + (native-inputs (list elm-sans-reactor)) + (inputs (list elm-sans-reactor + elm-browser + elm-core + elm-html + elm-http + elm-json + elm-project-metadata-utils + elm-svg + elm-explorations-markdown)) + (build-system elm-build-system) + (arguments + (list + #:modules + `((srfi srfi-26) + ,@%elm-default-modules) + #:phases + #~(modify-phases %standard-phases + (delete 'stage) + (replace 'configure + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (with-directory-excursion "reactor" + (patch-application-dependencies)))) + (replace 'build + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (with-directory-excursion "reactor" + (invoke (search-input-file (or native-inputs inputs) + "/bin/elm") + "make" + "--optimize" + "src/NotFound.elm" + "src/Errors.elm" + "src/Index.elm")))) + (replace 'install + (lambda* (#:key inputs #:allow-other-keys) + (let* ((out-dir #$output) + (bin-dir (string-append out-dir "/bin")) + (reactor-dir (string-append out-dir + "/" + #$%reactor-root-base + (getenv "GUIX_ELM_VERSION"))) + (reactor-subdir (string-append reactor-dir "/_elm"))) + ;; We can't use a symlink here because Haskell's + ;; `getExecutablePath` follows all symlinks. + ;; Guix can make it a hard link later. + (install-file (search-input-file inputs ;; NOT native-inputs + "/bin/elm") + bin-dir) + (install-file "reactor/assets/favicon.ico" reactor-dir) + (for-each (cut install-file <> reactor-subdir) + '("reactor/elm.js" + "reactor/assets/styles.css" + ;; TODO: these are source-code-pro v1.017 and + ;; source-sans-pro v1.050: there may be breaking + ;; changes in Guix's existing + ;; font-adobe-source-{code,sans}-pro packages + "reactor/assets/source-code-pro.ttf" + "reactor/assets/source-sans-pro.ttf"))))) + (delete 'validate-compiled)))) + (home-page "https://elm-lang.org") (synopsis "Programming language for Web applications") (description "Elm is a statically-typed, purely-functional programming language for diff --git a/guix/build-system/elm.scm b/guix/build-system/elm.scm index 046e6e0a1f..5e2db3b052 100644 --- a/guix/build-system/elm.scm +++ b/guix/build-system/elm.scm @@ -73,7 +73,7 @@ (define (default-elm) "Return the default Elm package for builds." ;; Lazily resolve the binding to avoid a circular dependency. (let ((elm (resolve-interface '(gnu packages elm)))) - (module-ref elm 'elm))) + (module-ref elm 'elm-sans-reactor))) (define (default-elm-core) "Return the default elm-core package." From patchwork Tue Apr 19 23:32:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38694 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 1755F27BBEA; Wed, 20 Apr 2022 00:36:55 +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 A375A27BBE9 for ; Wed, 20 Apr 2022 00:36:54 +0100 (BST) Received: from localhost ([::1]:46856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOv-0007We-R6 for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050Z-Q5 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxN9-0002Fr-SE for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxN9-00067V-PZ for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 19/30] gnu: Add elm-todomvc. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:03 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041126623342 (code B ref 55030); Tue, 19 Apr 2022 23:35:03 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:26 +0000 Received: from localhost ([127.0.0.1]:44492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMX-00064Q-OD for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:26 -0400 Received: from mail-vs1-f51.google.com ([209.85.217.51]:40771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMW-000641-1C for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:24 -0400 Received: by mail-vs1-f51.google.com with SMTP id v133so38299vsv.7 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:23 -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=YJ64RR9TLHTqL6doGQbhek0NeaRQ3MMYDT9kRH09Bdo=; b=dqMLrutdh2/t6OgeWeFeu67i1mifw445+gVYzHsEt3KwdfZrpB6ydhuZqQmmAU5m+e PpdNQSZ1wll9RqQc38/m5jecVe1k9GfimNOwXKO2CbUs+exA1FDElJWGStWsl8Mb9bPA wudpq0PgTbp68jEKyL0tO6FUrZz89AY5x2cI1DQpw6Jx13momWHUpUy3bhVdDnQfZAuf vKpJIZsMtHyPIgP0MUMnS96Ga1hsuO+eEuL8u1QqNFaFWcoN/rvwpfmd/dVhBWCskHRV BB94JgTJTRBWGRBCxmFkEKiBusBerSfVi3x8R189i4XV7ZbHIe9VpbpzTfmC17UDRy0n 74Lg== 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=YJ64RR9TLHTqL6doGQbhek0NeaRQ3MMYDT9kRH09Bdo=; b=C2XP4HH8/i/FgPOdXlCqHZIxAPlF3ufMGAcQ7l6wfr4vkF66cCAnkUhtwzudnA5Pm2 Zce0uK4VZD0SmLQdbwA7pikLW4sLKtE20q/bQiLdsYdBVY4y8axWfsntTLcomdxtbGXw AXDwp02+o45sotHiBld4cxuqhNuvLldVdJL8JB9dCt6Tf9zMjsp/XQg9J1FuvIMo+TqB 24+9gjOeaDjjEwnaCsOmocrJtfbewKfhC8MnpDA7yjDLRhmRa3mvfSn1aAFCayk45bf6 JbsURmL44OeFo7nTe6ipnB51sExo30lOR9M2KZb2WZZijfXswLXvWUdURfz4oDjGvlWa vLqw== X-Gm-Message-State: AOAM5326zsQdCxYdmMLuE5btUYNRfbLnPCEC8RPpFYlPL9TRF61E9UlT gVxKF39N5Hs3aKYs4euFerC5EUUPx11vhMBa X-Google-Smtp-Source: ABdhPJxoUXmr/tsU21gsPFlbYdxJdMqKtSYaSrwnzQXTx1QupfBmCln0TaD0Ro4QwUXdcdazfYf28A== X-Received: by 2002:a67:eec9:0:b0:324:c32c:dbdd with SMTP id o9-20020a67eec9000000b00324c32cdbddmr5691571vsp.33.1650411258498; Tue, 19 Apr 2022 16:34:18 -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 a1-20020ab03441000000b003545e4b2449sm171762uaq.34.2022.04.19.16.34.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:18 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:03 -0400 Message-Id: <20220419233214.275789-19-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 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 * gnu/packages/elm.scm (elm-todomvc): New variable. --- gnu/packages/elm.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 4181322393..e4cae693c4 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -494,3 +494,56 @@ (define-public elm-explorations-markdown (license license:bsd-3) (properties '((upstream-name . "elm-explorations/markdown"))))) +(define-public elm-todomvc + (let ((commit "f236e7e56941c7705aba6e42cb020ff515fe3290") + (revision "1")) + (package + (name "elm-todomvc") + (version (git-version "1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/evancz/elm-todomvc") + (commit commit))) + (sha256 + (base32 "0g37bglzshkf79s4n7aq9ib44h5qn8ng7n72sh2xslgd20h05nfw")) + (file-name (git-file-name name version)))) + (inputs (list elm-browser elm-core elm-html elm-json)) + (build-system elm-build-system) + (arguments + (list + #:modules + `((srfi srfi-26) + ,@%elm-default-modules) + #:phases + #~(modify-phases %standard-phases + (delete 'stage) + (replace 'configure + patch-application-dependencies) + (replace 'build + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (invoke (search-input-file (or native-inputs inputs) + "/bin/elm") + "make" + "src/Main.elm" + "--output=elm.js"))) + (replace 'install + (lambda args + (let* ((out-dir #$output) + (dest-dir + (string-append out-dir + "/share/" + (strip-store-file-name out-dir)))) + (for-each (cut install-file <> dest-dir) + `("elm.js" + "index.html" + "style.css" + "README.md"))))) + (delete 'validate-compiled)))) + (home-page "https://github.com/evancz/elm-todomvc") + (synopsis "TodoMVC in Elm") + (description "This is the official Elm implementation of +@url{https://todomvc.com,TodoMVC}, a simple to-do--list application used to +compare front-end web frameworks.") + (license license:bsd-3)))) From patchwork Tue Apr 19 23:32:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38682 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 8480A27BBEA; Wed, 20 Apr 2022 00:36:06 +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 555DA27BBE9 for ; Wed, 20 Apr 2022 00:36:06 +0100 (BST) Received: from localhost ([::1]:43792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxO9-0005QF-Hs for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050S-NS for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxNA-0002IH-Bx for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxNA-00067c-8h for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 20/30] gnu: Add elm-debois-elm-dom. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35: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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041127023360 (code B ref 55030); Tue, 19 Apr 2022 23:35:04 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:30 +0000 Received: from localhost ([127.0.0.1]:44495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMc-00064i-1Z for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:30 -0400 Received: from mail-vk1-f174.google.com ([209.85.221.174]:37717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMa-00064I-9p for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:28 -0400 Received: by mail-vk1-f174.google.com with SMTP id r8so32434vkq.4 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:28 -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=LOdf07Es4J2yM9EWkdpmVYgzb6BD5mCtH5louo/f3Z8=; b=cy00cplOW5Rhme/FVZCXc1IzTQ4aYL6whq2C0nchO36NEx78WHF0yB7UKEM+ShnMDb GNGsVSyxGfFWHoc4U2Ied5McD6a52bVNi8F7/DZAsZy17o02KX3jj3EWTXKmCCjySHTk 1gAqiOtIgKaLaUvbKJBhNEjwb+S14lqq7MUP6yBaJr/go6l8TVIXfSXyYUx/bbKEKZN7 Gv+ZHQS2GgdeBZhoAXDonT4n2AJm1jGmo8mlAAnlRLM9yCKOMDzBzfyLrLynd3ZkKyYk KuMGsaB6+Xzhn7DUxNV8hOtqFN3estuRraNKag9iOx/zCm0Ixz06d37NjKdX4/eWC+Qd ZMaA== 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=LOdf07Es4J2yM9EWkdpmVYgzb6BD5mCtH5louo/f3Z8=; b=AVJnv/XS2a/oBD5VWiKmwiYkvcNOL/WGT0ov0UMhTRdwqvrjYUAnFWPNXFHwGyL8rA 0F2/oTn4YUfzM0fag4TUa+zy10+3zFeF/52XSSjLm5NSEfGL8c5kkfB9jmhy10qFgf6a 7gWNDusQALxtnKm5D6tiuCQ12UaXDAjyrJ84NtRvXh/ZcZlWrkiLAxY7JXGdLNWQ6NNh qVywlU91xGWXhRVx9k4yiuMPLxxYAYsdUrAtuL2fQs5VZUkih2X3w9pyVI0jguN5iCEC bnly1mp5r942PPjZvYlhcTZrRyEppQQO4ik4eYSNVgf4ScM1Csz+8AKT4kPsORiNGJcq JxVQ== X-Gm-Message-State: AOAM531ytlqZRT0rj11XKJd/53/tMjY1abu0Boe1hVtANpznHQr//79m nkUGL/QmDmsXwEv2w/QqELDP1OPKQH1VNDiU X-Google-Smtp-Source: ABdhPJxhxu7zhT9qBTUrlszXbrtmGy8S4Ldwlafzrm1K0sasNGhF8Fb3g8tOOe2qi4u6Sw6mfmANNg== X-Received: by 2002:a1f:1e45:0:b0:345:ad09:8ba0 with SMTP id e66-20020a1f1e45000000b00345ad098ba0mr5258534vke.12.1650411262909; Tue, 19 Apr 2022 16:34:22 -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 w8-20020a9f2c88000000b0035ca7402552sm170265uaj.30.2022.04.19.16.34.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:22 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:04 -0400 Message-Id: <20220419233214.275789-20-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 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 * gnu/packages/elm.scm (elm-debois-elm-dom): New variable. --- gnu/packages/elm.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index e4cae693c4..81fe54bf39 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -547,3 +547,24 @@ (define-public elm-todomvc @url{https://todomvc.com,TodoMVC}, a simple to-do--list application used to compare front-end web frameworks.") (license license:bsd-3)))) + +(define-public elm-debois-elm-dom + (package + (name "elm-debois-elm-dom") + (version "1.3.0") + (source + (elm-package-origin + "debois/elm-dom" + version + (base32 "0w4z4w6ip118lk5g80w6mbbfxhfmivbmdkdm6wsmk63x85gscmqx"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-json elm-html elm-core)) + (home-page "https://package.elm-lang.org/packages/debois/elm-dom/1.3.0") + (synopsis "DOM traversal for Elm event-handlers") + (description + "This package provides a library for reading information off the DOM. +Use this if you need to discover geometry information (width, position, etc.) +of rendered elements.") + (license license:asl2.0) + (properties '((upstream-name . "debois/elm-dom"))))) From patchwork Tue Apr 19 23:32:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38687 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 9930E27BBEA; Wed, 20 Apr 2022 00:36:26 +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 533B127BBE9 for ; Wed, 20 Apr 2022 00:36:26 +0100 (BST) Received: from localhost ([::1]:45216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOT-0006R6-Fs for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050T-Nv for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxNA-0002II-RY for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxNA-00067l-P6 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 21/30] gnu: Add elm-random. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35: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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041128223394 (code B ref 55030); Tue, 19 Apr 2022 23:35:04 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:42 +0000 Received: from localhost ([127.0.0.1]:44498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMh-000650-AO for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:42 -0400 Received: from mail-ua1-f52.google.com ([209.85.222.52]:45910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMf-00064a-6r for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:33 -0400 Received: by mail-ua1-f52.google.com with SMTP id g22so10117uam.12 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:33 -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=ha/uwVgJkQglvXT2chWOJbrg8lC3wvAexf4LRjkduOs=; b=UC68TfI0Kfy812rxoiWElXPR8DqUN0E1a58tl9BPnmv+/uqzL9+20DE51wpO8Xn5b9 B3Ttiw5Ys1q7PRAd6TP4IjyNZABqSXGM7/ixrfIf2tnWSKSz4jPJDL7EjfPvvfQUko0l ludX++zkb99517v1SPw9CET3eXRLpNkIqxxSh9i6Zn1rl2eteAUgGdWzZhKeZUboqDIY WOGma8yED4pziCaUtEUUwKXuCVVt/zMiNYnbTNl7r4k/loA9w942qykTbu5/x3JUhdgW XBVhNDC2JG3AeH4XC6+tF4Pa9UOTWXbEOqCFjS1MWL61m7m8TAXFvYhAl1X9mEtU2m+G qhSg== 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=ha/uwVgJkQglvXT2chWOJbrg8lC3wvAexf4LRjkduOs=; b=kpia7CK0QBVYtVlp/JMPIyFin6d1feqWkqRApKWs8eV0XKZaCWcPm7bc42mZKivOVU wIo0KWUciPaR+yobC5Q16qg/lLwNuIQjwWWIichkSyA8UbPQOx6ptEJ+juQtuuZFeHE4 uhnY7DCgJZ3+7FYAdwznHmOxhqmyXN651OxmyL1BJaRFpnC7ne/g8K6SI0fF0PyMSED5 mV/+VycZFTxptOYIFZXNbf7bYbjAoH55xHipPJYhvh1mOc2Id2U2Ao5CeAY9PtJMa0vE cuWvFz/TbPDelraT/Z70KCbRLMCoYhuy9EYgmXMgOAsziWsfHcu5crdiALhyXKk5Rkk6 bVAg== X-Gm-Message-State: AOAM531ncxWVbIbNM2yW4BsJndAI5tkvVFTOzO+Set6BmMQLVKx+KM76 DHGPBdNsRXLeFdxWiMrThwIkxIkb54FsbZd9 X-Google-Smtp-Source: ABdhPJz7qoEFMAJsbBFoo9jAcW0qZRd3f7P+5othlKGl8KKd9IwkYl2XuZwcA8vIw2K9zBrL8MRxTA== X-Received: by 2002:ab0:5b4d:0:b0:35d:2f9c:f01 with SMTP id v13-20020ab05b4d000000b0035d2f9c0f01mr4878511uae.86.1650411267799; Tue, 19 Apr 2022 16:34:27 -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 s21-20020ab03735000000b0035d2d4bb0b6sm179166uag.2.2022.04.19.16.34.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:27 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:05 -0400 Message-Id: <20220419233214.275789-21-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 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 * gnu/packages/elm.scm (elm-random): New variable. --- gnu/packages/elm.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 81fe54bf39..940c456e14 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -568,3 +568,22 @@ (define-public elm-debois-elm-dom of rendered elements.") (license license:asl2.0) (properties '((upstream-name . "debois/elm-dom"))))) + +(define-public elm-random + (package + (name "elm-random") + (version "1.0.0") + (source + (elm-package-origin + "elm/random" + version + (base32 "0z0znkwfs35xiabk6pa9yqwsq03jssgd7jmsj1kk000mikfm7f39"))) + (build-system elm-build-system) + (propagated-inputs (list elm-time elm-core)) + (home-page "https://package.elm-lang.org/packages/elm/random/1.0.0") + (synopsis "Generate random numbers and values in Elm") + (description + "Need to generate random numbers? How about random game boards? Or +random positions in 3D space? This is the package for you!") + (license license:bsd-3) + (properties '((upstream-name . "elm/random"))))) From patchwork Tue Apr 19 23:32:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38688 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 260E227BBEA; Wed, 20 Apr 2022 00:36:27 +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 E616727BBE9 for ; Wed, 20 Apr 2022 00:36:26 +0100 (BST) Received: from localhost ([::1]:45256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOU-0006St-3v for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050Q-NZ for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxNB-0002IJ-Ab for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxNB-00067s-7b for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 22/30] gnu: Add elm-explorations-test. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:05 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041128223400 (code B ref 55030); Tue, 19 Apr 2022 23:35:05 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:42 +0000 Received: from localhost ([127.0.0.1]:44501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMo-00065H-D7 for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:42 -0400 Received: from mail-vk1-f179.google.com ([209.85.221.179]:38797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMj-00064r-R0 for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:38 -0400 Received: by mail-vk1-f179.google.com with SMTP id i27so31225vkr.5 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:37 -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=BuvgLpCbGRZnhuRZ4ogRWE1faI2zH+CObARsV/rAoFM=; b=h97uYe35Aos31MXTORmkz+mrgKTekTh4tseGpDrBQT5SKAvo76GZtGtCa+gVCmIAqT p8r2pNmw4bcOkeR7vPugecfzb8urY4UmptWPXoIff58D80ijjpGmIyJJFl9WTFmEp+9B Fh7YaF5FOCxgpinS28T/9JJpkGo8Sxv/lGfw4gfr0oAdB3F92+0rDzOFblZFNQG8s5+a a7Cc8aJAMqAZYjypqwv32+AbcMc1dUAN64EbJM1zFRIaGmxhMLTUCkzWDn5CA2T/J20T xuscpTdnO8oZ2pEdm3Z8u28DXHrldriKyzMYZkYzXtmyZFpRsmGNBcdrHKAGTxQe1ClF sq0g== 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=BuvgLpCbGRZnhuRZ4ogRWE1faI2zH+CObARsV/rAoFM=; b=qtMHhn+Tq/xSvTeEebSFa1fAVvqaPAWShuUflvcMeoqpDFFYQfYxLawfVF+/2GeZpK eNSRp5yc+RbRFe+P+mu+vgmzCOcVzkHWhglOO2sW4Hv8EXreENHcOCt1rCN7JuyTgVdM eptbgH/4PZvkMOAtn8UBQzLNR8JrF6O3t/97JkFyG/iRii1g2WeKX9+5z2rxFcpVdRQL 8LurNLBbuvHFQO8Imev2eF2D4ahWjlAkvleaxV7EqGdOZYX4gIAsyZ5kSl4EMPuFkDJA O0isltRh+27JLcBGrUcOtjED7so3ihnps3afSg9BzSILaHXLtg1JD+4SkrFs1pQb4lgK E7bA== X-Gm-Message-State: AOAM530YKAPN+bjHSLYZ7MAfCwMe9C0c9XGw9J48tLlviHa1bf4U2exf X5c2NPs2HtX3kce6ZnyNve4l70kUWHY2RcTX X-Google-Smtp-Source: ABdhPJyY0Fov55QTuhXWgHahPmP1WSML1m5CHzWNoY5mbCfnkO1K23ZZ4oaJGkdMEzcBFoJA08KhFg== X-Received: by 2002:a1f:300b:0:b0:349:7d46:3ca4 with SMTP id w11-20020a1f300b000000b003497d463ca4mr3966559vkw.10.1650411272260; Tue, 19 Apr 2022 16:34:32 -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 q187-20020a675cc4000000b0032a352f80dasm178832vsb.15.2022.04.19.16.34.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:31 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:06 -0400 Message-Id: <20220419233214.275789-22-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 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 * gnu/packages/elm.scm (elm-explorations-test): New variable. --- gnu/packages/elm.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 940c456e14..3498516b82 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -587,3 +587,29 @@ (define-public elm-random random positions in 3D space? This is the package for you!") (license license:bsd-3) (properties '((upstream-name . "elm/random"))))) + +(define-public elm-explorations-test + (package + (name "elm-explorations-test") + (version "1.2.2") + (source + (elm-package-origin + "elm-explorations/test" + version + (base32 "0kw32x0lr6nh5j9xk56vgg7x7c705g38grghh7cdp49frwdd6w3l"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-virtual-dom + elm-random + elm-json + elm-html + elm-core)) + (home-page + "https://package.elm-lang.org/packages/elm-explorations/test/1.2.2") + (synopsis "Testing framework for Elm") + (description "This package enables writing unit and fuzz tests for Elm +code. To actually run the tests, you need the command-line tool from +@url{https://github.com/rtfeldman/node-test-runner}, which has not yet been +packaged for Guix.") + (license license:bsd-3) + (properties '((upstream-name . "elm-explorations/test"))))) From patchwork Tue Apr 19 23:32:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38686 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 09D8D27BBEA; Wed, 20 Apr 2022 00:36:17 +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,TVD_SPACE_RATIO 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 CD2B027BBE9 for ; Wed, 20 Apr 2022 00:36:16 +0100 (BST) Received: from localhost ([::1]:44722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOK-00066h-0n for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050N-N3 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxNB-0002IM-R4 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxNB-000685-Ow for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 23/30] gnu: Add elm-danhandrea-elm-date-format. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:05 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041128423413 (code B ref 55030); Tue, 19 Apr 2022 23:35:05 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:44 +0000 Received: from localhost ([127.0.0.1]:44504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMp-00065Z-NV for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:43 -0400 Received: from mail-vs1-f45.google.com ([209.85.217.45]:39668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMo-000652-FF for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:42 -0400 Received: by mail-vs1-f45.google.com with SMTP id i34so42480vsv.6 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:42 -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=Koss1u+NC9gZR3V419oxsrhy8ODCJ9iE/6SmdISU5Dg=; b=Soxf3FHy+dHqewaXtwEE5H95utbg2BcBrgGy3J6jjkCiazif4BDrG6RD45CGtJ/A18 lxulkpGOwWp9pNh2Oa3HqOhyA13s0+gz2sDjQEkLLxoSFo20Bv4AO6VIUo+sbHgoSf7U DxG8hOTkaa3KKnEmZR9k1AEP35vHQTFRTtL0OPt1XGqrEO9H3wk8THuKu44TR9/w0LUI 9rA0MO1FqdEP8WQn9drx00C6p/4gSpre+JZvlERSjq3YJmgZfmCCLP8Z3DSRULSHsd3L EDvemPGQPH8JVzN1XliTkphJPwOJB1mBUduboYsxYjaStPomU3n9J1q4o5QOc3r/cZ9o FBqQ== 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=Koss1u+NC9gZR3V419oxsrhy8ODCJ9iE/6SmdISU5Dg=; b=dj2ii8Q3bt4bqhLgenwhXPoAoqT5uoEUMndbmTGiAaV4B8D/6j75iIXiaPN4MZ+Hes Wtkavl9mdXZ46GNPcrUmH7/kWnItaqfDE/T8ZQVt9MDJ1iKsNF7eC2wDF2HLNDyovLIf mIoxEGALpD5M+s8rus+j6J7pzh/kvx+XbuvY2HK79rdwK75khkcQ3UBpWgKy6YYuXz77 jvGU1vT0GDEfM6Vqy5G3RfrZ/67dxqqlWRVS3QPOjyyOVs8QTWPVkSucFqYbtWXTbQc3 y/fTKMF6sZzedNob2N9D5gLZ0uTbh7U08/FdDerpxKNvj2NAAhulwpvylFfaH4qO1qMX KmSw== X-Gm-Message-State: AOAM530TG7+RHb6b2X4A2yzgJOvEMvv1ZmMVPs6nM5H5DfDwmcATIonR vG2EIfdYOAS8jX2Pn8pGRCTM6+T+jzk770hR X-Google-Smtp-Source: ABdhPJwdF1zrvBcXmxr+X+cJ2gg8mZhTHtBdSJ3MDhtVU7gX4oFmmYm7lixmOU7xQQ7ppxpXBl9uaQ== X-Received: by 2002:a67:e3a5:0:b0:32a:31a6:8257 with SMTP id j5-20020a67e3a5000000b0032a31a68257mr5416269vsm.62.1650411276932; Tue, 19 Apr 2022 16:34:36 -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 f11-20020a67d88b000000b0032a2667dd74sm182814vsj.9.2022.04.19.16.34.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:36 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:07 -0400 Message-Id: <20220419233214.275789-23-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 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 * gnu/packages/elm.scm (elm-danhandrea-elm-date-format): New variable. --- gnu/packages/elm.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 3498516b82..d21feef89e 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -613,3 +613,23 @@ (define-public elm-explorations-test packaged for Guix.") (license license:bsd-3) (properties '((upstream-name . "elm-explorations/test"))))) + +(define-public elm-danhandrea-elm-date-format + (package + (name "elm-danhandrea-elm-date-format") + (version "2.0.1") + (source + (elm-package-origin + "danhandrea/elm-date-format" + version + (base32 "03mglzyywij5sm56m7q2jhhbsv7f9rdirgwmq0q41ghir81bzpv6"))) + (build-system elm-build-system) + (propagated-inputs (list elm-time elm-core)) + (inputs (list elm-explorations-test)) + (home-page + "https://package.elm-lang.org/packages/danhandrea/elm-date-format/2.0.1") + (synopsis "Date formatting for Elm") + (description "This package enhances @code{elm/time} with support for +format strings and internationalization of dates.") + (license license:bsd-3) + (properties '((upstream-name . "danhandrea/elm-date-format"))))) From patchwork Tue Apr 19 23:32:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38690 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 AF44127BBEA; Wed, 20 Apr 2022 00:36:40 +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 7C1EE27BBE9 for ; Wed, 20 Apr 2022 00:36:40 +0100 (BST) Received: from localhost ([::1]:45922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOh-0006tz-K5 for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050a-Pz for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxNC-0002IO-AG for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxNC-00068C-7U for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 24/30] gnu: Add elm-danhandrea-elm-time-extra. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:06 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041128823430 (code B ref 55030); Tue, 19 Apr 2022 23:35:06 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:48 +0000 Received: from localhost ([127.0.0.1]:44507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMu-00065q-0J for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:48 -0400 Received: from mail-vk1-f174.google.com ([209.85.221.174]:34318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMs-00065E-In for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:46 -0400 Received: by mail-vk1-f174.google.com with SMTP id b81so39203vkf.1 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:46 -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=cU36scn4yxxu+A7Pg5nR8rXWHOGWxzgIv8OYUBJtRpk=; b=HsbJEe/9y+ISQsdtzAnGmlxfYFvvm9/HceCyzpJiiKRhykNc8GB22e8wO9QGCPlHPY cpj5GsbsTVGn5fLBH6Fd7cSmathwGHd3KGwLD4VyXwnVRGdwI8TBLt9RvC/Oye0pjQdW VSjh2aEaQhowVh9cYeJNltNfW8pEyuV45x++Qk/L3w6MW1BU20fb1GuBRuACq4IKDQlS hga1jFa9Zz0JgZBnuPQnAT22BiKftpb8ij0HAwF6AIcwDV3n11G1v+8U5EkxB8759bw9 tRNOJwXLraB/1g2XcQ6ll5Ur4zv3eFDbpDzY1ukQ6u8COWphJv45SZiAbFw/Ot4oiCi/ j7AQ== 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=cU36scn4yxxu+A7Pg5nR8rXWHOGWxzgIv8OYUBJtRpk=; b=8MPePc8EClWp4YBVAGIRpwe8WWipPXgayD48q9aJ5j/w2Zz7foiG5Naqcqsp5VNIFM 7eFagG9tscIYEWr4f5H6yZgMOoVJfvuMiEx7rZpweYYU9Cb3zf5lGpmg8dUwoPw2sz3b 6pnU8IX3/+epVcxvFQ73lzCQkvMOiCBXMcwbK35Mb+GuJ8SgptDKE3NkQmziVR3stjQy es0bUx5w0amHilHZeXt12NS1HNPb1sOspbcXq01UFKlMrvNrWEEBcJ3U6c9rvmzIX/fg /owkdgsysMKArBNs0P5zuE/nxGT+0JYkZO5wIPzDk9QmRz9bMFTPxN6Dmio/9wPhLA1W D3xQ== X-Gm-Message-State: AOAM531hlzlclRysY1fMZNG+xaZhF3Xrtp2mbrqhHU0jU1rm5bjoX8tM sxjb7IbWFMD+4STznOjbHZ424LxVHvym8WXh X-Google-Smtp-Source: ABdhPJxykoZlglDYLYpRkh2IahAsvzBgwbyZqQT2VBonfkYu/ofBGKY3LHRpEi32Sw8JZxywW0szaA== X-Received: by 2002:a1f:2bcf:0:b0:345:74f7:e41a with SMTP id r198-20020a1f2bcf000000b0034574f7e41amr5354382vkr.36.1650411281097; Tue, 19 Apr 2022 16:34:41 -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 o11-20020ab0150b000000b0035ccb91e501sm171033uae.36.2022.04.19.16.34.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:40 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:08 -0400 Message-Id: <20220419233214.275789-24-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 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 * gnu/packages/elm.scm (elm-danhandrea-elm-time-extra): New variable. --- gnu/packages/elm.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index d21feef89e..9e398403e4 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -633,3 +633,25 @@ (define-public elm-danhandrea-elm-date-format format strings and internationalization of dates.") (license license:bsd-3) (properties '((upstream-name . "danhandrea/elm-date-format"))))) + +(define-public elm-danhandrea-elm-time-extra + (package + (name "elm-danhandrea-elm-time-extra") + (version "1.1.0") + (source + (elm-package-origin + "danhandrea/elm-time-extra" + version + (base32 "0z13q8x148d5amcc89f846yzql89n9gyan8fr48y91dhhn7vxibf"))) + (build-system elm-build-system) + (propagated-inputs (list elm-time elm-core)) + (inputs + (list elm-explorations-test + elm-danhandrea-elm-date-format)) + (home-page + "https://package.elm-lang.org/packages/danhandrea/elm-time-extra/1.1.0") + (synopsis "Extra utilities for POSIX time in Elm") + (description "This package enhances @code{elm/time} with extra utilities +for working with POSIX times.") + (license license:bsd-3) + (properties '((upstream-name . "danhandrea/elm-time-extra"))))) From patchwork Tue Apr 19 23:32:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38693 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 2460027BBEA; Wed, 20 Apr 2022 00:36:51 +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 CDB5327BBE9 for ; Wed, 20 Apr 2022 00:36:50 +0100 (BST) Received: from localhost ([::1]:46602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOs-0007LL-1A for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-0004zs-FN for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxND-0002IU-1d for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxNC-00068Q-UP for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 25/30] gnu: Add elm-justinmimbs-date. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:06 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041129223448 (code B ref 55030); Tue, 19 Apr 2022 23:35:06 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:52 +0000 Received: from localhost ([127.0.0.1]:44510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMy-000668-Bo for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:52 -0400 Received: from mail-vk1-f175.google.com ([209.85.221.175]:38801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxMx-00065i-5t for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:51 -0400 Received: by mail-vk1-f175.google.com with SMTP id i27so31373vkr.5 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:51 -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=LBj/ZI59WRYDFDwjqtek2yCy+ZL3BCNKD/GxXf+FZws=; b=VSLtVVWnV4TGap2ag0424kTfQxS5mamcN/4jPUiDlWzwwYMUi9omWq078X608SZ3LO B+dr8oalZecGDHqtUZcaFkGfdmDR3iPOZ1zmGqlgNaQVRkQFeWObH2MHD8o0c7PwfE7p kSfeE2dPjyb+W1Joabag/gPhs4WaL+DIzlHPnxgQs5GnV3PhozdSUbaYHy4YZzapstlH nv9aOvDEMzq3ER4ocKnckBk6z2gL2VfY9zRzHJDTIr9wZF10S0BJE/Y2AlKMp3aVObL7 p2LGNJlI7IgRQ1zq0pcpeKajRcdAhu4B0sZ5wpwz69wkP55lbmRdmmxTto6etbX+1osR gIjg== 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=LBj/ZI59WRYDFDwjqtek2yCy+ZL3BCNKD/GxXf+FZws=; b=35bzszt+5Y5NcgNhRnoBYaSaKTdwwDNCMUq+EXcD/upEflFpuF/xUo9S+QjYuPd1o+ a181op6Cy7xc6QZv5jaJNepeWurJPU2ZVWj8wWQe/gUcCiAlE6HQgyHda8KGqe6X6JeD huY2/Op9sk7faBd+m6s5wAXnadoFd3rrvc+FTAqRVem7JkDeJSnQ71D+GSF+EgftAbgn 1It0/qlBccFuI5F+MJxLjbS1YI1AklcHHPwOETcck3g4IPBCUKy5UU9Qho4iyvDgdN/Q kL1cnSEZa0qm8s+pFfrwxyR+Efx70pG3f63IIdCMVNhSeu97yHuSb+6taHeMjSVGuGYq aGjw== X-Gm-Message-State: AOAM530WRRGRTFWOqiPLh9B38DYsgrRjFEYrZt9BYUV+qNWZlY+47/LZ oxYiUA9NEIuBtUZDNHC80ylPdn5zCa4zjMbb X-Google-Smtp-Source: ABdhPJzhDCaHRnMfmUUANYd81tjJYiH1cICxHR3pcdAHuFGPUbweFr7Xa0hYw6rGN86YFgTpis5nxA== X-Received: by 2002:a1f:2d56:0:b0:339:578b:471d with SMTP id t83-20020a1f2d56000000b00339578b471dmr5304606vkt.7.1650411285723; Tue, 19 Apr 2022 16:34:45 -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 v13-20020ab0678d000000b0035ce198a740sm176378uar.5.2022.04.19.16.34.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:45 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:09 -0400 Message-Id: <20220419233214.275789-25-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 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 * gnu/packages/elm.scm (elm-justinmimbs-date): New variable. --- gnu/packages/elm.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 9e398403e4..9f8d74f695 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -655,3 +655,25 @@ (define-public elm-danhandrea-elm-time-extra for working with POSIX times.") (license license:bsd-3) (properties '((upstream-name . "danhandrea/elm-time-extra"))))) + +(define-public elm-justinmimbs-date + (package + (name "elm-justinmimbs-date") + (version "4.0.1") + (source + (elm-package-origin + "justinmimbs/date" + version + (base32 "13mf97137f0yb3gx1mxbya2y70qciah4hp5bcnpj8166vgzb7l3l"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-time + elm-parser + elm-core)) + (home-page "https://package.elm-lang.org/packages/justinmimbs/date/4.0.1") + (synopsis "Work with dates without times or zones in Elm") + (description + "This Elm package provides a simple @code{Date} type for working with +dates without times or zones.") + (license license:bsd-3) + (properties '((upstream-name . "justinmimbs/date"))))) From patchwork Tue Apr 19 23:32:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38691 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 D3B2D27BBEA; Wed, 20 Apr 2022 00:36:42 +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 A016827BBE9 for ; Wed, 20 Apr 2022 00:36:42 +0100 (BST) Received: from localhost ([::1]:45958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOj-0006vH-Nk for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050e-RK for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxND-0002IX-IZ for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxND-00068Y-E9 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 26/30] gnu: Add elm-justinmimbs-time-extra. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:07 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041129723474 (code B ref 55030); Tue, 19 Apr 2022 23:35:07 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:34:57 +0000 Received: from localhost ([127.0.0.1]:44513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxN3-00066Y-Jf for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:57 -0400 Received: from mail-ua1-f48.google.com ([209.85.222.48]:36784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxN1-000660-VQ for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:34:56 -0400 Received: by mail-ua1-f48.google.com with SMTP id w21so22456uan.3 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:34:55 -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=n+IiwxvRKEFBSeHBijL1oRnvBvQyrfc0MattVRFy2Jc=; b=ahoIUgieuppL9TgituzaFn6loq9G55AL4gGh535/VFcTu6MDp5DpjCWhrTko64cfU0 vnOFDuqodKdK3ulYcNRGJ37TYwf+1ejnldVM6cqRYV5sSgRQYtidHB6Bd1ydW7wFZWvH NsV/OJPG9kuAboyH4h6OXmf1IGX3NSWcml39E07gR07MET9jruUeXLKYDf/MCr3anWzH XaQPv8dZAPBN2e23Ye5r3PpzaGfQ9m4qhnA7w1delyRVcPBB+gfiWnbawos+WMVn4HHF 8i4PIhG2WCnFQqp01rsaRr57MJ6etj+rfI086tVTQPzBVXvGAUuIfjYiV6sLRFf43w4D X43Q== 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=n+IiwxvRKEFBSeHBijL1oRnvBvQyrfc0MattVRFy2Jc=; b=r4dapL8oFcXyUvK/Fps2WulW7POTKowOoznr4+1C2Jcfm1Pzs7lNwisiFZhWzNpAsA wfXTgLnXH4wYLBlBwFcWwvHcQl1knjkdu+LXYKl8ymzqz2YPtBPAj+kTtZtwngbuYrx4 MhTjiSErq6XkPY9BqaHabMa7W162rJ5Zx3hH9xZe5HVpntLUnGnoItoikL2vk73Jp39g vbWnYG4Bpmioh6BxpE5R9wo2gtxnw6WcdCdYmRsI/wRohyBl7edkZ316lmzlvJOy1EyN 5MJvWAs+HjqyZKk6Emvr5H24QNwyt/hfCJDq46cTF7fiBpxlt4M4JoIooD2MKuBeN15Y +rlA== X-Gm-Message-State: AOAM531cPhTMpVrTYoEQMRpZVzhKlVKEu0sge+XwC++ANerSnLozR81C NTqhS0oMCsAvEh5Jn9GYgzJ5AH1IwoqTEgFq X-Google-Smtp-Source: ABdhPJw/bNbGy9lZiVuuuNMwblrt+GK4F/HTp0/8WK7Alv7iLQbVOcsT4BCR8xYFlat8jIOv57M0aw== X-Received: by 2002:ab0:654b:0:b0:35d:2f7c:d362 with SMTP id x11-20020ab0654b000000b0035d2f7cd362mr4782459uap.69.1650411290335; Tue, 19 Apr 2022 16:34:50 -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 k14-20020a67c28e000000b0032a1f619ca4sm185110vsj.2.2022.04.19.16.34.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:49 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:10 -0400 Message-Id: <20220419233214.275789-26-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 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 * gnu/packages/elm.scm (elm-justinmimbs-time-extra): New variable. --- gnu/packages/elm.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 9f8d74f695..8992112e13 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -677,3 +677,26 @@ (define-public elm-justinmimbs-date dates without times or zones.") (license license:bsd-3) (properties '((upstream-name . "justinmimbs/date"))))) + +(define-public elm-justinmimbs-time-extra + (package + (name "elm-justinmimbs-time-extra") + (version "1.1.1") + (source + (elm-package-origin + "justinmimbs/time-extra" + version + (base32 "1gmgvzlpzkysvm86d0md75ply10pz28bg699m4763frss0jvrngh"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-justinmimbs-date + elm-time + elm-core)) + (home-page + "https://package.elm-lang.org/packages/justinmimbs/time-extra/1.1.1") + (synopsis "Extra functions for POSIX times in Elm") + (description + "This package provides extra functions for working with @code{Posix} +times from @code{elm/time}.") + (license license:bsd-3) + (properties '((upstream-name . "justinmimbs/time-extra"))))) From patchwork Tue Apr 19 23:32:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38696 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 35E8D27BBEA; Wed, 20 Apr 2022 00:37:21 +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 D90C427BBE9 for ; Wed, 20 Apr 2022 00:37:20 +0100 (BST) Received: from localhost ([::1]:47486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxPM-0007yK-2E for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:37:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050l-TR for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxNE-0002Ic-2S for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxND-00068g-Ts for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 27/30] gnu: Add elm-myrho-elm-round. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:07 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041130223511 (code B ref 55030); Tue, 19 Apr 2022 23:35:07 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:35:02 +0000 Received: from localhost ([127.0.0.1]:44517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxN7-000674-TF for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:35:02 -0400 Received: from mail-vk1-f170.google.com ([209.85.221.170]:43938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxN6-00066Q-Mt for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:35:00 -0400 Received: by mail-vk1-f170.google.com with SMTP id bi49so23557vkb.10 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:35:00 -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=MDwb7QRZUuL8DPo4/pe3EpqaYBf0Q6NsnuvUKmeqE4A=; b=Ba/y0i7VCI0E8wKBrSHtzPLF4pGFJM9Q5bG1iW8eyLh5XJJDNaHDP15O0SvWljAs8/ ku/IJEUeO+jfYJN4rRRubRB8aJ60Alyw7giJICW60sYtRnfI/if3GkDN2vst99F2/C6Z e6z3YzFT0LlElidHaKLuHkLYWPf9bomdCpWNFN+VvKnWSfZbh1Qb50g3m/FbRYl+n6rs ilTLDRqMIvA/pSUMzVdpBMZfV+0e7FpMbThPVF7EDW6lK6gwpolg5rOs3dFOETzaSACK FRpRKUFnQa8AJbALD6y/MlsLENfiAtwQoTKnYjVBBkvT95OnPlA2zH9yr0jUGCRW1F7s Jcig== 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=MDwb7QRZUuL8DPo4/pe3EpqaYBf0Q6NsnuvUKmeqE4A=; b=Lw0BU2ObMDRAo/eKcPpuFSnGbJxVxh8FJHD1VNuWh95TaDkidNQrXO0RZYE4LTluGr i0lhaT0r2mRzrLV9vhPP8VIuuCbJxbqLzJJ1LxCXno2jBt/jpZQZNvbyG5HTC5Su3gBh Fnu70H6DuMQurMs/T85IxXNWOWymiFZU6M72WZeQJ2FrouyLEXyrXN8dfyriAsw31GGX ei6mOE10ApA39hV5sOp9RRb+1SfPZw8FKnY63nQiuDyi2lOwBA1HUKu7u8wL4J3c46S9 BUzLvRYWKR2j8tZQ6LwT6yvtwoSP/vfq9knFNKkBr4PUPDPcv0gnVWbiUq1l6Kr7oUCA iT1w== X-Gm-Message-State: AOAM53013ua+/l6he+VxLQylOLGNNTQOdSmpKqyOFgjeH2+94nctsTlY gZ7dBhFOGunxrRx+sxU1/Ye0HALTA1oKqhnt X-Google-Smtp-Source: ABdhPJyqWITYDrZ2k0Y6iHm0GdOJb8xoKuM9FcvzY71m8vL8jl/3z0TmeFsfPkbp5+Tu7iu+0ow6/A== X-Received: by 2002:a1f:9dca:0:b0:349:6bb2:1c1a with SMTP id g193-20020a1f9dca000000b003496bb21c1amr4095701vke.1.1650411294936; Tue, 19 Apr 2022 16:34:54 -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 l20-20020ab07194000000b0035d2b6f3616sm177327uao.3.2022.04.19.16.34.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:54 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:11 -0400 Message-Id: <20220419233214.275789-27-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 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 * gnu/packages/elm.scm (elm-myrho-elm-round): New variable. --- gnu/packages/elm.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 8992112e13..cdbc7e14a5 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -700,3 +700,25 @@ (define-public elm-justinmimbs-time-extra times from @code{elm/time}.") (license license:bsd-3) (properties '((upstream-name . "justinmimbs/time-extra"))))) + +(define-public elm-myrho-elm-round + (package + (name "elm-myrho-elm-round") + (version "1.0.4") + (source + (elm-package-origin + "myrho/elm-round" + version + (base32 "0y3j43wr815cvwz5310zalnqzpg3hw8h127zjjlf6x8ynapc2mdb"))) + (build-system elm-build-system) + (propagated-inputs (list elm-core)) + (inputs (list elm-explorations-test)) + (home-page "https://package.elm-lang.org/packages/myrho/elm-round/1.0.4") + (synopsis "Flexible rounding of Elm @code{Float}s") + (description + "This library converts a @code{Float} to a @code{String} with ultimate +control how many digits after the decimal point are shown and how the +remaining digits are rounded. It rounds, floors and ceils the @dfn{common} +way (i.e. half up) or the @dfn{commerical} way (ie. half away from zero).") + (license license:bsd-3) + (properties '((upstream-name . "myrho/elm-round"))))) From patchwork Tue Apr 19 23:32:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38695 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 1932B27BBEA; Wed, 20 Apr 2022 00:36:59 +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 BB9CB27BBE9 for ; Wed, 20 Apr 2022 00:36:58 +0100 (BST) Received: from localhost ([::1]:47102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxOz-0007hc-VV for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:36:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxNE-00050o-V3 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxNE-0002JN-K3 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxNE-00068n-Dy for guix-patches@gnu.org; Tue, 19 Apr 2022 19:35:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 28/30] gnu: Add elm-ryannhg-date-format. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:35:08 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041130723584 (code B ref 55030); Tue, 19 Apr 2022 23:35:08 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:35:07 +0000 Received: from localhost ([127.0.0.1]:44528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxNC-00068I-9p for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:35:06 -0400 Received: from mail-vs1-f49.google.com ([209.85.217.49]:41652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxNB-00066h-0U for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:35:05 -0400 Received: by mail-vs1-f49.google.com with SMTP id t202so36872vst.8 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:35:04 -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=HRfBr0vh+OGJTX/O8kWhZPcsbABgmHqgfI6PGmNsil0=; b=Zy98Z8JEKnUwmZfnUKLKKkloXgCT2htZDJOdc0EnP540VjeG+EyHnflAqyjlAw0KjL Wb3Nrnf5h7yyEHzj16/Or4WjXhPrnwlCO73VKLhDXkG6EfyKAdNu/0u+PMk2/u0/VaoG 1Za6FOuGGdcTnN0KItidP3IHwy/bI3PEb8Pgtrd5Q/roDTstoV4wJFFaQov05otpiOPb 1AhmjYaD/uLmMMMmDsHjM/4piN67M+Id+mYZ3Vy6RjFzx+sAVMHge25IihE0YOL24IBb E5hoT0D9TbpqLVc+FZbLHLEH3A+HwnncFnSwE2om19b8FgTmNHS1Dv+rTMkHQQ8A3shc M/bg== 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=HRfBr0vh+OGJTX/O8kWhZPcsbABgmHqgfI6PGmNsil0=; b=B6YWYX56e3V5qj6QyWC/BjWkr13zz0KxKsPvNCltSVL+Pe5LcIBO+N6frRWWLyxmBU 0p4wIxwcTxPhIuSOC2RDwpRKNQ/2hBoxYZLkPx2OCDMxp9DMFIpeZNUWryDippsa9M/a 2w5jyRQ2ZIjJgIW1pCDVlPrG0ZkkaTP8s0Kkngaq9xG34iYkLNyWX1PeQVXUmzDKzKRo HY7MLe7ZG1PEnoYh8ktz1HWJudWYj6cgHNEwlD0I1bOLWuoW9qIOY12WBukdpVaw89Yp qGIYKaC2JS/gjjN1fF+Jk8sdKdpu0UhicAWU+RheMJJyn6e4ViBI8DFp5HC/2f021zrN jjKA== X-Gm-Message-State: AOAM532xhrXM3IZOa0XJD7nWH/tximU5u1d7BFQvBGT/aPMIuxDMrHSf zUc88vQiqBQtdyiOPYNe9rHe8FjUO5tFHPpT X-Google-Smtp-Source: ABdhPJxW8YFcwXsVN1tW6jvmFiQYbmi/hAdT18rAVk4rj5bL/DET84KEU9XdbRwjeaOWJga89ZUU+g== X-Received: by 2002:a05:6102:219:b0:32a:1b2f:395b with SMTP id z25-20020a056102021900b0032a1b2f395bmr5399171vsp.36.1650411299472; Tue, 19 Apr 2022 16:34:59 -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 z1-20020ab02241000000b0035d3ea88e1bsm179142uan.23.2022.04.19.16.34.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:34:58 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:12 -0400 Message-Id: <20220419233214.275789-28-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 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 * gnu/packages/elm.scm (elm-ryannhg-date-format): New variable. --- gnu/packages/elm.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index cdbc7e14a5..4f1b093165 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -722,3 +722,26 @@ (define-public elm-myrho-elm-round way (i.e. half up) or the @dfn{commerical} way (ie. half away from zero).") (license license:bsd-3) (properties '((upstream-name . "myrho/elm-round"))))) + +(define-public elm-ryannhg-date-format + (package + (name "elm-ryannhg-date-format") + (version "2.3.0") + (source + (elm-package-origin + "ryannhg/date-format" + version + (base32 "0razh6im5qwmla10knk67j8w11mqlqlyfnclykbfl06kaksfm3sp"))) + (build-system elm-build-system) + (propagated-inputs (list elm-time elm-core)) + (inputs (list elm-explorations-test)) + (home-page + "https://package.elm-lang.org/packages/ryannhg/date-format/2.3.0") + (synopsis "Reliable advanced dates formatting for Elm") + (description + "This package provides Elm programs with reliable, powerful tools for +formatting dates and times. It uses Elm's type system instead of format +strings, which makes formatting code more readable and can catch some errors +at compile time.") + (license license:bsd-3) + (properties '((upstream-name . "ryannhg/date-format"))))) From patchwork Tue Apr 19 23:32:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38699 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 0ECE527BBEA; Wed, 20 Apr 2022 00:37:55 +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 CBA8F27BBE9 for ; Wed, 20 Apr 2022 00:37:54 +0100 (BST) Received: from localhost ([::1]:48268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxPu-0008Vi-0E for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:37:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxO6-0005u0-Bq for guix-patches@gnu.org; Tue, 19 Apr 2022 19:36:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxO6-0002WF-33 for guix-patches@gnu.org; Tue, 19 Apr 2022 19:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxO6-0006Af-0F for guix-patches@gnu.org; Tue, 19 Apr 2022 19:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 29/30] gnu: Add elm-terezka-intervals. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:36:01 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041131223642 (code B ref 55030); Tue, 19 Apr 2022 23:36:01 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:35:12 +0000 Received: from localhost ([127.0.0.1]:44536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxNH-00069F-Q6 for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:35:12 -0400 Received: from mail-vk1-f175.google.com ([209.85.221.175]:44717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxNF-00067j-GJ for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:35:09 -0400 Received: by mail-vk1-f175.google.com with SMTP id o132so22395vko.11 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:35:09 -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=gQTW1u2lRQQYG1x6kKwsYQ2tDQcxDcyGfO2W/eG5Igc=; b=bVCcDcDCz83wk4eMsoWs7xUJiJBSFRHxjrHGWVsvSa/wWr8a1q6+PtDcQpCQGz0T3v dCZ5lzwJtbVticy2am+9ayhs+cgc2vPCXnyOYrvN5mtV/5jRt0bTsJaaUNI8ucW1PgS/ /d52HBWc1XTlAYdaJuTRxVx3PqE+9z0h7sGUovHmVVS+S8lLZdYFny6VxFSnSqt5uR19 Dw99cbsXK+O3BF5bYqrKMpVHfhGJRvnINrdi/R2Z3nBsqilS/CSPuOLAzQcxB9ZRgIH4 JeitXdmmPOiVkBaojrWbTE7DZhnLxncSvFKWNv8D7ZFy1yud8CvPUGiAetHMwKB3YdTS j2TA== 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=gQTW1u2lRQQYG1x6kKwsYQ2tDQcxDcyGfO2W/eG5Igc=; b=gUDS26/9t/yTjR+eeUfQMtrG7N3FXSrXlC4+mSe0rBVrMEHeg2LsOaPvhTnEefvdpT GZiG9PJDjxfH7dpXl7n1S0iHMoVILcSodt6SPfknN5BpKX7vhEgCgOeqfv2kEd1R6JQt Z3tv3qmQS6g5IYpVjLbpYrskXMH62952sKMtGGhfIOkYu+xfGdb9+odWwnkhitDONNMv mMVi+fDZhatTMlZx9kepJyOROy+vsgi6gEbbwGFrFi4LstsiuOejU6XUonUl831BQImU mI/WcqWkvTXfcwUv7KMtf3vMhx8V3/wwLMAspwKQXkT9xX/a8TZILQaJmguWh9U7ZfzV fHxA== X-Gm-Message-State: AOAM530KWTFWLcGegEPvsrzxZq7eU5dyZTxDJcRcBeZaBFIkY0c2TtoI 66UPbvDAtahPQ3ZNLEbtXm24clZhVMkqqJ/o X-Google-Smtp-Source: ABdhPJxwJaFiFF/BzOD1XspKcMupJcbzN4I++dTkfcXwRU+I4zQz0miWNbnlGbzV0UMcDZQR2aCpjw== X-Received: by 2002:a1f:1ccd:0:b0:349:439a:5c51 with SMTP id c196-20020a1f1ccd000000b00349439a5c51mr4678009vkc.2.1650411303978; Tue, 19 Apr 2022 16:35:03 -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 s21-20020ab03735000000b0035d2d4bb0b6sm179387uag.2.2022.04.19.16.35.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:35:03 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:13 -0400 Message-Id: <20220419233214.275789-29-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 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 * gnu/packages/elm.scm (elm-terezka-intervals): New variable. --- gnu/packages/elm.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 4f1b093165..186af9d768 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -745,3 +745,35 @@ (define-public elm-ryannhg-date-format at compile time.") (license license:bsd-3) (properties '((upstream-name . "ryannhg/date-format"))))) + +(define-public elm-terezka-intervals + (package + (name "elm-terezka-intervals") + (version "2.0.1") + (source + (elm-package-origin + "terezka/intervals" + version + (base32 "0h3im58sa6awyppch1v8ppcrzwc5h48yn45crx98m8zs4isx91lj"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-ryannhg-date-format + elm-myrho-elm-round + elm-justinmimbs-time-extra + elm-time + elm-svg + elm-json + elm-html + elm-core + elm-danhandrea-elm-time-extra)) + (inputs (list elm-explorations-test)) + (home-page "https://package.elm-lang.org/packages/terezka/intervals/2.0.1") + (synopsis "Produce nice intervals for Elm charts") + (description + "This package provides an Elm library for producing nice intervals for +charts. It's useful in combination with @code{terezka/elm-charts}. When I +say ``nice'', I just mean that I try to calculate intervals which begin with +10, 5, 3, 2, or 1 (adjusted to magnitude, of course!). For dates, I try to +hit whole days, weeks, and months or hours, minutes, and seconds.") + (license license:bsd-3) + (properties '((upstream-name . "terezka/intervals"))))) From patchwork Tue Apr 19 23:32:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 38698 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 E927E27BBEA; Wed, 20 Apr 2022 00:37:40 +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 9955F27BBE9 for ; Wed, 20 Apr 2022 00:37:40 +0100 (BST) Received: from localhost ([::1]:48024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngxPf-0008Lr-Jy for patchwork@mira.cbaines.net; Tue, 19 Apr 2022 19:37:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngxO7-0005u5-9g for guix-patches@gnu.org; Tue, 19 Apr 2022 19:36:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngxO6-0002WL-Ec for guix-patches@gnu.org; Tue, 19 Apr 2022 19:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngxO6-0006An-CC for guix-patches@gnu.org; Tue, 19 Apr 2022 19:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55030] [PATCH 30/30] gnu: Add elm-terezka-elm-charts. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 23:36:02 +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: Philip McGrath Received: via spool by 55030-submit@debbugs.gnu.org id=B55030.165041131623661 (code B ref 55030); Tue, 19 Apr 2022 23:36:02 +0000 Received: (at 55030) by debbugs.gnu.org; 19 Apr 2022 23:35:16 +0000 Received: from localhost ([127.0.0.1]:44539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxNM-00069Z-5e for submit@debbugs.gnu.org; Tue, 19 Apr 2022 19:35:16 -0400 Received: from mail-vk1-f175.google.com ([209.85.221.175]:43950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngxNK-000695-Pm for 55030@debbugs.gnu.org; Tue, 19 Apr 2022 19:35:15 -0400 Received: by mail-vk1-f175.google.com with SMTP id bi49so23733vkb.10 for <55030@debbugs.gnu.org>; Tue, 19 Apr 2022 16:35:14 -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=DYuUWqfIt3wQ3oTQUzDWYdKlcInLM+iDvXPptcPcTjc=; b=N/YH+iMZCm/a0voWLjDeFRD5yLQ6xd6tZfvD/LwR2u/NO1vNcjJElM+U7FsbhJ+ikf mnBnNH1MakMJ/j030LB3gg/C6Dde0/99IIH2yOA0F7k8dvKxwpnCehAJEICgtK52lFgG m/KQ66Zwv8pbc8cliY9eRP+JPenbbccINafryBVaLdSZPU4RtXbe1VOXGNiTLVJ9/ILW g+5wRjPUgXtln6hX+88yhtNFYCBa0pTfxp7T67Xblvm5y84VtQsrCGFquasxAlGGQFG9 N5xYZICGWV67Hv/DIvQN53Bh1qIOJ14xvIbGwK26OgKXVYQLErDsPxb+nxqs4ixzUIQO c9KA== 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=DYuUWqfIt3wQ3oTQUzDWYdKlcInLM+iDvXPptcPcTjc=; b=WqNN1fNhN1YjC2snYhkqb85yFTF6PVT8LBt8VsCbdEkjlIZg6zfk8Gqk20egtg9p++ 1AokFw/C6EAkGAja867x9/E6NQHmDdmI7wYteaKGJQKDveKGj21O3eHluzv05rrkaqaI 5TNnHnksmwcHBiX5wTigw1Y90NBgdosqNVyzNK606Lq+C84BQMN5DH7cf+J0rELuud3p TIHjvRrxzlGCb4HKilrJBNnKOmY7jdxpRtlMhxi5cmSaEjLO+7xc+JrWDQiWT4Mo/LUz sIocnTksjjIxDJsV+Ac48/r86rcjKB/rSj9THjxyjmKztSNkr8bIRmuTuIOCPWygTaJ6 I//A== X-Gm-Message-State: AOAM532/gi12mD5QrxZPkzlOjA1N+QC9meYk9AdWD7JgMGtR+iBl2w9L uZdLba9rCUQKSTSTWdUN663RvkPcoaylOz4X X-Google-Smtp-Source: ABdhPJw73yWUgP6p2HgqpB0VTkTF3AFc3OmQvrtTkp/MlR+FMLhYUJbsyEaa3EzLkRLbsJiNkiRGJA== X-Received: by 2002:a1f:1ccd:0:b0:349:439a:5c51 with SMTP id c196-20020a1f1ccd000000b00349439a5c51mr4678099vkc.2.1650411309124; Tue, 19 Apr 2022 16:35:09 -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 q16-20020a056122003000b00348d87e1a40sm177338vkd.22.2022.04.19.16.35.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 16:35:07 -0700 (PDT) From: Philip McGrath Date: Tue, 19 Apr 2022 19:32:14 -0400 Message-Id: <20220419233214.275789-30-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 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 * gnu/packages/elm.scm (elm-terezka-elm-charts): New variable. --- gnu/packages/elm.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm index 186af9d768..1e9cbd4a30 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -777,3 +777,36 @@ (define-public elm-terezka-intervals hit whole days, weeks, and months or hours, minutes, and seconds.") (license license:bsd-3) (properties '((upstream-name . "terezka/intervals"))))) + +(define-public elm-terezka-elm-charts + (package + (name "elm-terezka-elm-charts") + (version "3.0.0") ;; NOTE! Tags like 5.1.0 are from an OLDER version + (source + (elm-package-origin + "terezka/elm-charts" + version + (base32 "17syq73jwldc7fk7snm5k8s85nsvxyprb34rs1rwjsapc1vii7hc"))) + (build-system elm-build-system) + (propagated-inputs + (list elm-terezka-intervals + elm-ryannhg-date-format + elm-time + elm-svg + elm-json + elm-html + elm-core + elm-debois-elm-dom)) + (home-page + "https://elm-charts.org") + (synopsis "SVG chart components in Elm") + (description + "Make SVG charts in all Elm. The package can draw charts at a variety of +different levels of customization, from basic charts with standard features to +very custom styles. The library also allows including your very own SVG +elements while still easily utilizing the coordinate system calculated from +your data, as well as editing the SVGs made by the package. It has great +support for interactivity, layering different charts, and adding irregular +details.") + (license license:bsd-3) + (properties '((upstream-name . "terezka/elm-charts")))))