;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Robert Vollmert ;;; ;;; 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 (gnu packages elm) #:use-module (gnu packages) #:use-module (gnu packages haskell) #:use-module (gnu packages haskell-check) #:use-module (gnu packages haskell-crypto) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-web) #:use-module (guix build-system haskell) #: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. (define-public elm-compiler (package (name "elm-compiler") (version "0.19.0") (source (origin (method git-fetch) (file-name (git-file-name name version)) (uri (git-reference (url "https://github.com/elm/compiler/") (commit version))) (sha256 (base32 "0s93z9vr0vp5w894ghc5s34nsq09sg1msf59zfiba87sid5vgjqy")) (patches (search-patches "elm-compiler-disable-reactor.patch" "elm-compiler-fix-map-key.patch")))) (build-system haskell-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'update-constraints (lambda _ (substitute* "elm.cabal" (("ansi-terminal >= 0\\.8 && < 0\\.9,") "ansi-terminal >= 0.8 && < 0.10,") (("containers >= 0\\.5\\.8\\.2 && < 0\\.6,") "containers >= 0.5.8.2 && < 0.7,") (("http-client >= 0\\.5 && < 0\\.6,") "http-client >= 0.5 && < 0.7,") (("language-glsl >= 0\\.0\\.2 && < 0\\.3,") "language-glsl >= 0.0.2 && < 0.4,") (("network >= 2\\.4 && < 2\\.7,") "network >= 2.4 && < 2.9,")) #t))))) (inputs `(("ghc-ansi-terminal" ,ghc-ansi-terminal) ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint) ("ghc-edit-distance" ,ghc-edit-distance) ("ghc-file-embed" ,ghc-file-embed) ("ghc-http" ,ghc-http) ("ghc-http-client" ,ghc-http-client) ("ghc-http-client-tls" ,ghc-http-client-tls) ("ghc-http-types" ,ghc-http-types) ("ghc-language-glsl" ,ghc-language-glsl) ("ghc-logict" ,ghc-logict) ("ghc-network" ,ghc-network) ("ghc-raw-strings-qq" ,ghc-raw-strings-qq) ("ghc-scientific" ,ghc-scientific) ("ghc-sha" ,ghc-sha) ("ghc-snap-core" ,ghc-snap-core) ("ghc-snap-server" ,ghc-snap-server) ("ghc-unordered-containers" ,ghc-unordered-containers) ("ghc-utf8-string" ,ghc-utf8-string) ("ghc-vector" ,ghc-vector) ("ghc-zip-archive" ,ghc-zip-archive))) (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}.") (license license:bsd-3))) i.scm (matching-generations): Likewise. * guix/upstream.scm (package-update): Likewise. * tests/channels.scm ("latest-channel-instances, missing introduction for 'guix'"): Catch 'formatted-message?'. ("authenticate-channel, wrong first commit signer"): Likewise. * tests/lint.scm ("patches: not found"): Adjust message string. * tests/packages.scm ("patch not found yields a run-time error"): Catch 'formatted-message?'. * guix/lint.scm (check-patch-file-names): Handle 'formatted-message?'. (check-derivation): Ditto. Ludovic Courtès 2020-07-25utils: Move '&fix-hint' to (guix diagnostics)....* guix/utils.scm (&fix-hint): Move to... * guix/diagnostics.scm (&fix-hint): ... here. * gnu.scm: Adjust imports accordingly. * gnu/system/mapped-devices.scm: Likewise. * guix/channels.scm: Likewise. * guix/profiles.scm: Likewise. * guix/scripts/system/reconfigure.scm: Likewise. * guix/ssh.scm: Likewise. Ludovic Courtès 2020-07-25utils: Move <location> and '&error-location' to (guix diagnostics)....* guix/utils.scm (<location>, source-properties->location) (location->source-properties, &error-location): Move to... * guix/diagnostics.scm: ... here. * gnu.scm: Adjust imports accordingly. * gnu/machine.scm: Likewise. * gnu/system.scm: Likewise. * gnu/tests.scm: Likewise. * guix/inferior.scm: Likewise. * tests/channels.scm: Likewise. * tests/packages.scm: Likewise. Ludovic Courtès 2019-03-24Add (gnu system keyboard)....* gnu/system/keyboard.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu.scm (%public-modules): Add it. Ludovic Courtès 2017-11-08gnu: Improve error reporting of the use-.*modules macros....Suggested by Julien Lepiller and myglc2 at <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00106.html>. * gnu.scm (%try-use-modules): New procedure. (package-module-hint, service-module-hint): New procedures. (try-use-modules): New macro. (use-package-modules, use-service-modules, use-system-modules): Use it. * tests/guix-system.sh: Test it. Ludovic Courtès