[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55030] [PATCH 19/30] gnu: Add elm-todomvc.
From: |
Philip McGrath |
Subject: |
[bug#55030] [PATCH 19/30] gnu: Add elm-todomvc. |
Date: |
Tue, 19 Apr 2022 19:32:03 -0400 |
* 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))))
--
2.32.0
- [bug#55030] [PATCH 11/30] gnu: Add elm-browser., (continued)
- [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
- [bug#55030] [PATCH 06/30] gnu: Add elm-virtual-dom., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 07/30] gnu: Add elm-html., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 13/30] gnu: Add elm-file., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 26/30] gnu: Add elm-justinmimbs-time-extra., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 25/30] gnu: Add elm-justinmimbs-date., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 20/30] gnu: Add elm-debois-elm-dom., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 24/30] gnu: Add elm-danhandrea-elm-time-extra., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 19/30] gnu: Add elm-todomvc.,
Philip McGrath <=
- [bug#55030] [PATCH 17/30] gnu: Add elm-explorations-markdown., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 22/30] gnu: Add elm-explorations-test., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 21/30] gnu: Add elm-random., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 23/30] gnu: Add elm-danhandrea-elm-date-format., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 16/30] gnu: Add elm-project-metadata-utils., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 28/30] gnu: Add elm-ryannhg-date-format., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 18/30] gnu: elm: Support 'elm reactor'., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 27/30] gnu: Add elm-myrho-elm-round., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 30/30] gnu: Add elm-terezka-elm-charts., Philip McGrath, 2022/04/19
- [bug#55030] [PATCH 29/30] gnu: Add elm-terezka-intervals., Philip McGrath, 2022/04/19