guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help with a confusing error: url-fetch, hash, invalid keyword #vu8


From: Robert Vollmert
Subject: help with a confusing error: url-fetch, hash, invalid keyword #vu8
Date: Mon, 18 Nov 2019 16:28:37 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]