From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Woodcox Subject: Enjoying GuixSD Date: Fri, 9 Nov 2018 13:51:19 -0700 Message-ID: <2DD7DD91-2840-4DA1-9465-CFA51C42CBAD@inskydata.com> Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLDlD-0006kT-9z for help-guix@gnu.org; Fri, 09 Nov 2018 15:52:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLDl9-00014w-0J for help-guix@gnu.org; Fri, 09 Nov 2018 15:52:11 -0500 Received: from mail.inskydata.com ([184.68.229.6]:64866 helo=server.inskydata.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLDl8-0000eV-My for help-guix@gnu.org; Fri, 09 Nov 2018 15:52:06 -0500 Received: from [192.168.19.76] (unknown [192.168.19.76]) by server.inskydata.com (Postfix) with ESMTPSA id 313AA42989A4 for ; Fri, 9 Nov 2018 13:51:21 -0700 (MST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org 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 =E2=80=94> guix environment ghc =E2=80=94ad-ho= c 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=3D=E2=80=9C$HOME/.cabal/bin:$PATH=E2=80=9D ## 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 = =E2=80=94with-gmp-includes=3D/gnu/store/rilw7541pgdz10sabki897961ymin625-p= rofile/include = =E2=80=94with-gmp-libraries=3D/gnu/store/rilw7541pgdz10sabki897961ymin625-= profile/lib = =E2=80=94with-curses-libraries=3D/gnu/store/rilw7541pgdz10sabki897961ymin6= 25-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 =E2=80=94interactive 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. :)