[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55030] [PATCH 04/30] gnu: Add elm-core and elm-json.
From: |
Philip McGrath |
Subject: |
[bug#55030] [PATCH 04/30] gnu: Add elm-core and elm-json. |
Date: |
Tue, 19 Apr 2022 19:31:48 -0400 |
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)))))
--
2.32.0
- [bug#55030] [PATCH 00/30] gnu: elm: Update to 0.19.1. Add build system & importer., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 01/30] gnu: elm-compiler: Update to 0.19.1., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 04/30] gnu: Add elm-core and elm-json.,
Philip McGrath <=
- [bug#55030] [PATCH 09/30] gnu: Add elm-time., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 10/30] gnu: Add elm-url., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 02/30] gnu: elm: Rename package to match the command., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 03/30] guix: Add elm-build-system and 'guix import elm'., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 12/30] gnu: Add elm-bytes., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 14/30] gnu: Add elm-http., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 08/30] gnu: Add elm-svg., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 11/30] gnu: Add elm-browser., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 15/30] gnu: Add elm-parser., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 05/30] build-system/elm: Add implicit Elm inputs., Philip McGrath, 2022/04/19