From: Simon Tournier <zimon.toutoune@gmail.com>
To: "Przemysław Kamiński" <cgenie@pm.me>,
"help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: streamlining custom package development
Date: Tue, 07 Mar 2023 19:28:25 +0100 [thread overview]
Message-ID: <86ilfca01i.fsf@gmail.com> (raw)
In-Reply-To: <06abebe3-1b27-881a-ce7e-7cdc4a725d6b@pm.me>
Hi,
On Tue, 07 Mar 2023 at 16:57, Przemysław Kamiński <cgenie@pm.me> wrote:
> Starting download of /tmp/guix-file.TykbjO
> From
> https://hackage.haskell.org/package/servant-examples/servant-examples-0.1.0.0.tar.gz...
> download failed
> "https://hackage.haskell.org/package/servant-examples/servant-examples-0.1.0.0.tar.gz"
> 404 "Not Found"
From <https://hackage.haskell.org/package/servant-examples>, I read,
0.4.2, 0.4.3, 0.4.3.1, 0.4.4, 0.4.4.2, 0.4.4.3, 0.4.4.4, 0.4.4.5, 0.4.4.6, 0.4.4.7
and 0.1.0.0 is not listed. For instance, just tweak the Cabal file,
--8<---------------cut here---------------start------------->8---
$ git diff
diff --git a/servant-examples.cabal b/servant-examples.cabal
index f31e2a4..8861cf2 100644
--- a/servant-examples.cabal
+++ b/servant-examples.cabal
@@ -1,5 +1,5 @@
name: servant-examples
-version: 0.1.0.0
+version: 0.4.2
-- synopsis:
-- description:
homepage: https://github.com/githubuser/servant-examples#readme
--8<---------------cut here---------------end--------------->8---
then Guix finds it in the Hackage infrastructure.
--8<---------------cut here---------------start------------->8---
$ cat servant-examples.cabal | guix import hackage -s -r
Starting download of /tmp/guix-file.yrblu1
From https://hackage.haskell.org/package/servant-examples/servant-examples-0.4.2.tar.gz...
…es-0.4.2.tar.gz 1.7MiB/s 00:00 | 7KiB transferred
Syntax error: unexpected end of input
Syntax error: unexpected end of input
Syntax error: unexpected end of input
Syntax error: unexpected end of input
(define-public ghc-servant-examples
(package
(name "ghc-servant-examples")
(version "0.4.2")
(source (origin
(method url-fetch)
(uri (hackage-uri "servant-examples" version))
(sha256
(base32
"1nmgzkn0nv3p0bzr5ny0yx0g45fzf5qx7s868jp1nq7wbfd3yc0i"))))
(build-system haskell-build-system)
(inputs (list ghc-servant
ghc-servant-server
ghc-servant-swagger
ghc-swagger2
ghc-wai
ghc-aeson
ghc-warp))
(home-page "https://github.com/githubuser/servant-examples#readme")
(synopsis "")
(description "")
(license license:bsd-3)))
--8<---------------cut here---------------end--------------->8---
> My guess the "Syntax error" is from the missing "ghc-servant-swagger"
> package.
Hum, I guess is that it comes from the option ’-s’. For instance,
guix import hackage servant-examples -r
does not display it. However, I do not find what is the code that
display “Syntax error”. Maybe a bug here, indeed.
Cheers,
simon
prev parent reply other threads:[~2023-03-07 21:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 10:44 streamlining custom package development Przemysław Kamiński
2023-03-03 11:05 ` Marek Paśnikowski
2023-03-07 13:31 ` Simon Tournier
2023-03-07 16:02 ` Ludovic Courtès
2023-03-07 16:57 ` Przemysław Kamiński
2023-03-07 18:28 ` Simon Tournier [this message]
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=86ilfca01i.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=cgenie@pm.me \
--cc=help-guix@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.
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).