From: Brian Woodcox <bw@inskydata.com>
To: help-guix@gnu.org
Subject: Enjoying GuixSD
Date: Fri, 9 Nov 2018 13:51:19 -0700 [thread overview]
Message-ID: <2DD7DD91-2840-4DA1-9465-CFA51C42CBAD@inskydata.com> (raw)
I have been playing around with guix on the guixSD system.
I think Ludovic showed an example of doing this with petsc, so I thought I would give it a go with Haskell. It worked out great!
So, I decided to pull down the Haskell ghc source code from master on github and compile it in an environment.
Set up the environment with —> guix environment ghc —ad-hoc ghc@8.4.3
I had to install a few packages:
guix package -i libgmp
guix package -i ncurses
etc..
I had to unset GHC_PACKAGE_PATH
PATH=“$HOME/.cabal/bin:$PATH” ## Needed otherwise cabal complains about the wrong version of happy. I probably should have used a sandbox for the cabal stuff or possibly a container.
cabal install alex happy
python3 boot
./configure —with-gmp-includes=/gnu/store/rilw7541pgdz10sabki897961ymin625-profile/include —with-gmp-libraries=/gnu/store/rilw7541pgdz10sabki897961ymin625-profile/lib —with-curses-libraries=/gnu/store/rilw7541pgdz10sabki897961ymin625-profile/lib
./configure
make
So after a while building this, I end up with ghc-stage2 and other executables in my inplace/bin folder.
I run ./ghc-stage2 —interactive
and I get
GHCi, version 8.7.20181108: http://www.haskell.org/ghc/ :? for help
Big success. I love the fact that I can setup an environment and do this sort of thing.
I might try this with a container next and then move on to guile and try building and compiling packages the guix way.
P.S. If anyone feels energetic and has the time, it would be nice to have a recipe to install the VirtualBox Guest Additions into GuixSD. Then I can get copy and paste to work. :)
next reply other threads:[~2018-11-09 20:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-09 20:51 Brian Woodcox [this message]
2018-11-09 21:18 ` Enjoying GuixSD Brett Gilio
2018-11-11 2:09 ` Björn Höfling
2018-11-11 2:20 ` Brett Gilio
2018-11-11 13:09 ` running GuixSD on a VM (was Re: Enjoying GuixSD) Giovanni Biscuolo
2018-11-14 22:49 ` Enjoying GuixSD Brian Woodcox
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=2DD7DD91-2840-4DA1-9465-CFA51C42CBAD@inskydata.com \
--to=bw@inskydata.com \
--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.