Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I believe that it's choking with 'events' package:
- $guix import hackage -t ghc-events
- Syntax error: unexpected token : common (at line 44, column 0)
- Syntax error: unexpected end of input
- guix import: error: failed to download cabal file for package 'ghc-events'
- and with out the ghc:
- $guix import hackage -t events
- guix import: error: failed to download cabal file for package 'events'
- What was I tryng to do in the first place:
- $guix import hackage -t -r threadscope
- Starting download of /tmp/guix-file.P3d97B
- From https://hackage.haskell.org/package/threadscope/threadscope-0.2.14.tar.gz...
- …0.2.14.tar.gz 82KiB 364KiB/s 00:00 [##################] 100.0%
- Starting download of /tmp/guix-file.NG1oxB
- From https://hackage.haskell.org/package/gtk/gtk-0.15.5.tar.gz...
- ….5.tar.gz 663KiB 830KiB/s 00:01 [##################] 100.0%
- Starting download of /tmp/guix-file.JagOnA
- From https://hackage.haskell.org/package/glib/glib-0.13.8.1.tar.gz...
- …8.1.tar.gz 39KiB 606KiB/s 00:00 [##################] 100.0%
- Starting download of /tmp/guix-file.NvsSsB
- From https://hackage.haskell.org/package/pango/pango-0.13.8.1.tar.gz...
- ….8.1.tar.gz 51KiB 338KiB/s 00:00 [##################] 100.0%
- Syntax error: unexpected token : common (at line 44, column 0)
- Syntax error: unexpected end of input
- Backtrace:
- 9 (primitive-load "/home/catriel/.config/guix/current/bin…")
- In guix/ui.scm:
- 2164:12 8 (run-guix-command _ . _)
- In guix/scripts/import.scm:
- 120:11 7 (guix-import . _)
- In guix/scripts/import/hackage.scm:
- 132:26 6 (guix-import-hackage . _)
- In guix/import/utils.scm:
- 465:27 5 (recursive-import _ #:repo->guix-package _ #:guix-name _ …)
- In srfi/srfi-1.scm:
- 586:29 4 (map1 _)
- 586:29 3 (map1 _)
- 586:29 2 (map1 (("pango" #f) ("ghc-events" #f)))
- 586:17 1 (map1 (("ghc-events" #f)))
- In guix/import/utils.scm:
- 454:33 0 (lookup-node "ghc-events" #f)
- guix/import/utils.scm:454:33: In procedure lookup-node:
- Wrong number of values returned to continuation (expected 2)
- With out -r, it works fine, but I need the input packages. Here is the definition that manages to get imported:
- (use-modules (guix packages)
- (guix download)
- (guix build-system haskell)
- (guix licenses))
- (package
- (name "ghc-threadscope")
- (version "0.2.14")
- (source
- (origin
- (method url-fetch)
- (uri (string-append
- "https://hackage.haskell.org/package/threadscope/threadscope-"
- version
- ".tar.gz"))
- (sha256
- (base32
- "0xcj8v6kyk8ss2sg6f32gx84vgx36hfaqb5p3sy3d4vkxan4xwcy"))))
- (build-system haskell-build-system)
- (inputs
- `(("ghc-gtk" ,ghc-gtk)
- ("ghc-cairo" ,ghc-cairo)
- ("ghc-glib" ,ghc-glib)
- ("ghc-pango" ,ghc-pango)
- ("ghc-events" ,ghc-events)
- ("ghc-file-embed" ,ghc-file-embed)
- ("ghc-temporary" ,ghc-temporary)))
- (home-page
- "http://www.haskell.org/haskellwiki/ThreadScope")
- (synopsis
- "A graphical tool for profiling parallel Haskell programs.")
- (description
- "ThreadScope is a graphical viewer for thread profile information generated by the Glasgow Haskell compiler (GHC). . The Threadscope program allows us to debug the parallel performance of Haskell programs. Using Threadscope we can check to see that work is well balanced across the available processors and spot performance issues relating to garbage collection or poor load balancing.")
- (license bsd-3))
- I thinkg "ghc" it's prefixed by the build system in the inputs packages.
- For example, ghc-gtk, is https://hackage.haskell.org/package/gtk
- but, events naming appears to already have 'ghc': https://hackage.haskell.org/package/ghc-events
- So for now I'm trying to debug the importing process to know a little more about what may be failing. Any Ideas?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement