From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: jgart <jgart@dismail.de>, Guix Devel <guix-devel@gnu.org>
Subject: Re: Guix Goals: One Hackable Developer Tool To Rule Them All
Date: Sun, 16 Oct 2022 15:11:38 +0200 [thread overview]
Message-ID: <866dce757bafc9e92c64582b3bc3b50a792c4e7e.camel@gmail.com> (raw)
In-Reply-To: <20221013010703.GB27375@dismail.de>
Am Donnerstag, dem 13.10.2022 um 01:07 -0500 schrieb jgart:
> Hi Guixers,
>
> What do you think if we were to implement "Guix Goals"?
>
> The various language ecosystems have their own linters, formatters,
> typecheckers, repls, test runners, etc.
>
> What if Guix could manage them all?
>
> `guix lint` in a python project would run mypy.
> `guix lint` in a haskell project would run hlint.
> `guix lint` in an erlang project would run dialyzer.
>
> `guix fmt` in a python project would run black.
> `guix fmt` in a haskell project would run ormolu.
> `guix fmt` in a erlang project would run erlfmt.
>
> `guix repl` in a python project would run ptpython or some other
> configured repl.
> `guix repl` in a haskell project would run ghci.
> `guix repl` in a erlang project would run erl.
>
> `guix test` in a python project would run pytest or unittest.
> `guix test` in a haskell project would run hunit.
> `guix test` in a erlang project would run eunit.
>
> `guix run` in a python project could start a flask app listening on a
> particular port.
> `guix run` in a ruby project could start a puma server.
> `guix run` in a haskell project could run a pre-configured script or
> Main.hs
> `guix run` in a erlang project could start a cowboy server.
>
> The idea would be to have Guix provide a configurable CLI wrapper
> subcommand around all language ecosystem developer tools. In other
> words it's the same Guixy thesis applied to developer tooling. I
> think this could take the Guix developer experience to the next
> level.
Completely unnecessary. You can already do this with guix shell or gwl
if you prefer.
To elaborate, note that only the last variable in a file or manifest
needs to evaluate to a list of packages or manifest. That is, you can
write a self-reading manifest/script wrapper relatively easy.
#!/bin/sh
exec guix shell -m "$0" -- guile -e main -s "$0" "$@"
!#
(define (main args) ...)
...
(specifications->manifest ...)
Of course, it'd be hell of a lot cleaner to separate manifest and
business logic, but who am I to stop you?
Cheers
next prev parent reply other threads:[~2022-10-16 13:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-13 6:07 Guix Goals: One Hackable Developer Tool To Rule Them All jgart
2022-10-13 13:03 ` zimoun
2022-10-13 13:56 ` pinoaffe
2022-10-13 14:34 ` indieterminacy
2022-10-13 14:55 ` pinoaffe
2022-10-14 2:24 ` jgart
2022-10-16 13:11 ` Liliana Marie Prikler [this message]
2022-10-16 17:54 ` jgart
2022-10-16 18:41 ` jgart
2022-10-16 18:50 ` Liliana Marie Prikler
2022-10-16 20:03 ` jgart
2022-10-16 23:22 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2022-10-17 19:08 ` Liliana Marie Prikler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=866dce757bafc9e92c64582b3bc3b50a792c4e7e.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=guix-devel@gnu.org \
--cc=jgart@dismail.de \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.