From: Robert Vollmert <rob@vllmrt.net>
To: guix-devel@gnu.org
Subject: help with a confusing error: url-fetch, hash, invalid keyword #vu8
Date: Mon, 18 Nov 2019 16:28:37 +0100 [thread overview]
Message-ID: <1D116338-4D20-4935-9F33-1E3987EDB17F@vllmrt.net> (raw)
Hi,
I’m in writing up some notes on my Guix packaging work earlier this year, and
am running into an unexpected problem that I’m lost with. A concrete example:
$ guix import hackage ormolu > ormolu.scm
add missing imports at the top of ormolu.scm:
(use-modules (guix packages))
(use-modules (guix build download))
(use-modules (guix build-system haskell))
(use-modules (guix licenses))
(use-modules (gnu packages haskell-xyz))
(use-modules (gnu packages haskell-check))
$ guix build -f ormolu.scm
Backtrace:
In guix/ui.scm:
415:6 19 (_)
In guix/scripts/build.scm:
879:5 18 (_)
In srfi/srfi-1.scm:
679:15 17 (append-map _ _ . _)
592:17 16 (map1 ("x86_64-linux"))
679:15 15 (append-map _ _ . _)
592:17 14 (map1 (#<package ghc-ormolu@0.0.1.0 /home/rob/blog-tes…>))
In guix/scripts/build.scm:
840:18 13 (_ _)
In guix/packages.scm:
936:16 12 (cache! #<weak-table 447/883> #<package ghc-ormolu@0.0…> …)
1255:22 11 (thunk)
1188:25 10 (bag->derivation #<store-connection 256.99 1b95ae0> #<…> …)
In srfi/srfi-1.scm:
592:29 9 (map1 _)
592:29 8 (map1 (("ghc-hspec" #<package ghc-hspec@2.5.5 gnu/…>) …))
592:29 7 (map1 (("ghc-path" #<package ghc-path@0.6.1 gnu/pa…>) …))
592:29 6 (map1 (("ghc-path-io" #<package ghc-path-io@1.3.3 …>) …))
592:17 5 (map1 (("source" #<origin "https://hackage.haskell…>) …))
In ice-9/boot-9.scm:
829:9 4 (catch srfi-34 #<procedure 4628b10 at guix/packages.sc…> …)
In guix/packages.scm:
1003:18 3 (_)
In guix/store.scm:
1803:24 2 (run-with-store #<store-connection 256.99 1b95ae0> _ # _ …)
1673:13 1 (_ _)
In guix/build/download.scm:
741:0 0 (url-fetch _ _ #:timeout _ #:verify-certificate? _ # _ # …)
guix/build/download.scm:741:0: In procedure url-fetch:
Invalid keyword: #vu8(96 84 134 13 223 219 170 200 61 134 246 111 6 115 201 118 102 154 109 187 101 185 64 146 131 54 199 173 34 76 149 220)
This is with my guix install from roughly July, which has some modifications,
so it’s not impossible that that’s involved, but I don’t see any relevant changes.
And generally the install still works fine, including building some local
custom packages that don’t do anything differently that’s obvious to me.
I suspect I made some simple mistake with imports or my guix package invocation —
hoping someone can provide a hint?
The full contents of ormolu.scm:
(use-modules (guix packages))
(use-modules (guix build download))
(use-modules (guix build-system haskell))
(use-modules (guix licenses))
(use-modules (gnu packages haskell-xyz))
(use-modules (gnu packages haskell-check))
(package
(name "ghc-ormolu")
(version "0.0.1.0")
(source
(origin
(method url-fetch)
(uri (string-append
"https://hackage.haskell.org/package/ormolu/ormolu-"
version
".tar.gz"))
(sha256
(base32
"1p4m9hiavirnhf941fb5pdnrlrknr5rhcvznhqywianvvw6qcm30"))))
(build-system haskell-build-system)
(inputs
`(("ghc-dlist" ,ghc-dlist)
("ghc-exceptions" ,ghc-exceptions)
("ghc-paths" ,ghc-paths)
("ghc-syb" ,ghc-syb)
("ghc-gitrev" ,ghc-gitrev)
("ghc-optparse-applicative"
,ghc-optparse-applicative)))
(native-inputs
`(("ghc-hspec" ,ghc-hspec)
("ghc-path" ,ghc-path)
("ghc-path-io" ,ghc-path-io)))
(home-page "https://github.com/tweag/ormolu")
(synopsis "A formatter for Haskell source code")
(description
"A formatter for Haskell source code.")
(license bsd-3))
Cheers
Robert
next reply other threads:[~2019-11-18 15:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-18 15:28 Robert Vollmert [this message]
2019-11-18 20:40 ` help with a confusing error: url-fetch, hash, invalid keyword #vu8 John Soo
2019-11-18 21:06 ` Robert Vollmert
2019-11-18 21:13 ` John Soo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1D116338-4D20-4935-9F33-1E3987EDB17F@vllmrt.net \
--to=rob@vllmrt.net \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).