all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gary Johnson <lambdatronic@disroot.org>
To: Bone Baboon <bone.baboon@disroot.org>
Cc: help-guix@gnu.org
Subject: Re: Haskell program build and run using Cabal
Date: Sun, 11 Apr 2021 09:12:08 -0400	[thread overview]
Message-ID: <87k0p9m0d3.fsf@disroot.org> (raw)
In-Reply-To: <87sg3xec75.fsf@disroot.org>

Bone Baboon <bone.baboon@disroot.org> writes:

> I am trying to build a Haskell program from source and run it.  I am
> using Cabal a Haskell build tool to do this.  I am able to build and run
> this program without the following error messages on other Linux
> operating systems.
>
> [snip]
>
> Doing an internet search for this error message shows people dealing
> with it by setting environment variables.
>
> With Cabal's `new-build` and `new-run` commands I am running into issues
> with environment variables.  Are environment variables managed in Guix
> system configurations?  I searched the Guix manual for the search term
> "environment variable" and did not see a prominent section on
> environment variables.  That leads me to guess that in Guix environment
> variables are left to configuration files in the users home directory.

Guix System (unsurprisingly) has a built-in preference for building
packages with Guix. For building Haskell programs, check out the
`haskell-build-system`, which uses cabal and ghc under the hood.

Also, if the package you want to install exists on Hackage
(https://hackage.haskell.org) but doesn't have a corresponding Guix
package, you should check out the Guix hackage importer:

$ guix import hackage -r PACKAGE-NAME@VERSION

This can auto-generate a Guix package definition for the corresponding
Hackage package that you can then use to install it through Guix.

Finally, to answer your question about environment variables, you should
stick them in your home directory under your shell configuration script
(e.g., ~/.bashrc, ~/.bash_profile).

Happy hacking,
  Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


  reply	other threads:[~2021-04-11 13:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-11  3:23 Haskell program build and run using Cabal Bone Baboon
2021-04-11 13:12 ` Gary Johnson [this message]
2021-04-11 16:11   ` John Soo
2021-04-11 17:31   ` Bone Baboon

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=87k0p9m0d3.fsf@disroot.org \
    --to=lambdatronic@disroot.org \
    --cc=bone.baboon@disroot.org \
    --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.
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.