From patchwork Sat Aug 17 14:17:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 14949 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 D1186172D6; Sat, 17 Aug 2019 15:18:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 77BCF172BB for ; Sat, 17 Aug 2019 15:18:12 +0100 (BST) Received: from localhost ([::1]:36474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyzX1-0002So-Nf for patchwork@mira.cbaines.net; Sat, 17 Aug 2019 10:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53052) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyzWv-0002SI-EJ for guix-patches@gnu.org; Sat, 17 Aug 2019 10:18:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyzWu-0008He-0g for guix-patches@gnu.org; Sat, 17 Aug 2019 10:18:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyzWt-0008HZ-Ti for guix-patches@gnu.org; Sat, 17 Aug 2019 10:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyzWt-0004xy-P9 for guix-patches@gnu.org; Sat, 17 Aug 2019 10:18:03 -0400 Subject: bug#36665: [PATCH] gnu: Add elm-compiler 0.19.0 Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sat, 17 Aug 2019 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 36665 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Robert Vollmert Mail-Followup-To: 36665@debbugs.gnu.org, ludo@gnu.org, rob@vllmrt.net Received: via spool by 36665-done@debbugs.gnu.org id=D36665.156605146219049 (code D ref 36665); Sat, 17 Aug 2019 14:18:02 +0000 Received: (at 36665-done) by debbugs.gnu.org; 17 Aug 2019 14:17:42 +0000 Received: from localhost ([127.0.0.1]:56682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyzWY-0004xB-4b for submit@debbugs.gnu.org; Sat, 17 Aug 2019 10:17:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyzWW-0004wz-8b for 36665-done@debbugs.gnu.org; Sat, 17 Aug 2019 10:17:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hyzWQ-0007Uu-FY; Sat, 17 Aug 2019 10:17:34 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58316 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hyzWP-0000fZ-O3; Sat, 17 Aug 2019 10:17:34 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= References: <20190715134713.74863-1-rob@vllmrt.net> Date: Sat, 17 Aug 2019 16:17:31 +0200 In-Reply-To: <20190715134713.74863-1-rob@vllmrt.net> (Robert Vollmert's message of "Mon, 15 Jul 2019 15:47:14 +0200") Message-ID: <87blwnev0k.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 36665-done@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, Robert Vollmert skribis: > This adds the elm compiler, version 0.19.0. This provides the > `elm` command, with the exception of the `elm reactor` subcommand. > > Named `elm-compiler`, to leave space for `elm` as the full elm > including reactor. > > * gnu/packages/elm.scm: New module. > (elm-compiler): New package. > * gnu/packages/patches/elm-disable-reactor.patch: New patch. > * gnu/packages/patches/elm-fix-map-key.patch: New patch. > * gnu/packages/patches/elm-relax-glsl-bound.patch: New patch. > * gnu/local.mk: Add new files. Finally applied with the minor changes below, which address issues reported by ‘guix lint’ and tweak the synopsis and description. Note that ‘elm repl’ says that it wants ‘node’ in $PATH, but I think that’s OK: people who need the REPL can add Node to their environment, and otherwise they can do without Node, AIUI. Thank you! Ludo’. diff --git a/gnu/local.mk b/gnu/local.mk index 9ac43897d4..aab29beb0a 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -774,9 +774,9 @@ 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-disable-reactor.patch \ - %D%/packages/patches/elm-fix-map-key.patch \ - %D%/packages/patches/elm-relax-glsl-bound.patch \ + %D%/packages/patches/elm-compiler-disable-reactor.patch \ + %D%/packages/patches/elm-compiler-fix-map-key.patch \ + %D%/packages/patches/elm-compiler-relax-glsl-bound.patch \ %D%/packages/patches/emacs-dired-toggle-sudo-emacs-26.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 e4dea88585..c6a8a81a94 100644 --- a/gnu/packages/elm.scm +++ b/gnu/packages/elm.scm @@ -24,7 +24,7 @@ #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-web) #:use-module (guix build-system haskell) - #:use-module (guix download) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)) @@ -38,15 +38,17 @@ (version "0.19.0") (source (origin - (method url-fetch) - (file-name "elm-0.19.0.tar.gz") - (uri "https://github.com/elm/compiler/archive/0.19.0.tar.gz") + (method git-fetch) + (file-name (git-file-name name version)) + (uri (git-reference + (url "https://github.com/elm/compiler/") + (commit version))) (sha256 - (base32 "0g4risrjrvngz3j4wf432j82gjcc8i1b7l5lwbb0fhr24hvz6ka9")) + (base32 "0s93z9vr0vp5w894ghc5s34nsq09sg1msf59zfiba87sid5vgjqy")) (patches - (search-patches "elm-disable-reactor.patch" - "elm-relax-glsl-bound.patch" - "elm-fix-map-key.patch")))) + (search-patches "elm-compiler-disable-reactor.patch" + "elm-compiler-relax-glsl-bound.patch" + "elm-compiler-fix-map-key.patch")))) (build-system haskell-build-system) (inputs `(("ghc-ansi-terminal" ,ghc-ansi-terminal) @@ -71,8 +73,9 @@ ("ghc-vector" ,ghc-vector) ("ghc-zip-archive" ,ghc-zip-archive))) (home-page "https://elm-lang.org") - (synopsis "The `elm` command line interface, without `elm reactor`") + (synopsis "Programming language for Web applications") (description - "This includes commands like `elm make`, `elm repl`, and many others -for helping make Elm developers happy and productive.") + "This package provides Elm, a statically-typed functional programming +language for the browser. It includes commands for developers such as like +@command{elm make} and @command{elm repl}.") (license license:bsd-3))) diff --git a/gnu/packages/patches/elm-disable-reactor.patch b/gnu/packages/patches/elm-compiler-disable-reactor.patch similarity index 100% rename from gnu/packages/patches/elm-disable-reactor.patch rename to gnu/packages/patches/elm-compiler-disable-reactor.patch diff --git a/gnu/packages/patches/elm-fix-map-key.patch b/gnu/packages/patches/elm-compiler-fix-map-key.patch similarity index 100% rename from gnu/packages/patches/elm-fix-map-key.patch rename to gnu/packages/patches/elm-compiler-fix-map-key.patch diff --git a/gnu/packages/patches/elm-relax-glsl-bound.patch b/gnu/packages/patches/elm-compiler-relax-glsl-bound.patch similarity index 100% rename from gnu/packages/patches/elm-relax-glsl-bound.patch rename to gnu/packages/patches/elm-compiler-relax-glsl-bound.patch