unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: William <wonko7@gmail.com>
To: John Soo <jsoo1@asu.edu>
Cc: help-guix@gnu.org
Subject: Re: xmonad, xmonad-contrib & GHC_PACKAGE_PATH?
Date: Wed, 21 Apr 2021 09:06:41 +0200	[thread overview]
Message-ID: <CAFBkDVsWPA97kDvWxZrheDvqYQSd7QXw0VGgF3AAL_1GzJG+vg@mail.gmail.com> (raw)
In-Reply-To: <78b102c6-7199-4060-9783-789b33d4607a@Canary>

Thanks both of you!
This works for me:

(use-modules (gnu)
             (gnu packages commencement)
             (guix profiles))
(use-package-modules haskell haskell-xyz wm gcc)
(packages->manifest (list gcc-toolchain ghc ghc-hostname
ghc-xmonad-contrib xmonad))

and then xmonad --recompile Just Works.

Have a nice day!

On Wed, 21 Apr 2021 at 06:20, John Soo <jsoo1@asu.edu> wrote:
>
> Hello,
>
> I thought I had opened an issue about this but I must have kept it in my TODOs. The haskell-build-system does not put outputs in the right place for the ghc profile hook. xmonad --recompile should Just Work with any installed haskell-build-system libraries installed via guix. I’ve been meaning to look at this for a while but I have not had the chance. Could you please open a fresh issue?
>
> The workaround is to do this (altering for your host system and required libraries):
>
> ghc -o ~/.xmonad/xmonad-x86_64-linux \
>   -package-db $(guix build ghc-xmonad-contrib | grep -v static)/lib/ghc-8.6.5/ghc-xmonad-contrib-0.16.conf.d/ \
>   -package-db $(guix build ghc-dbus | grep -v static)/lib/ghc-8.6.5/ghc-dbus-1.2.7.conf.d/ \
>   -package-db $GUIX_PROFILE/lib/ghc-8.6.5/package.conf.d/ \
>   -dynamic xmonad.hs
>
> Hope that helps,
>
> John



-- 
Wonko


      reply	other threads:[~2021-04-21 21:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-20  7:47 xmonad, xmonad-contrib & GHC_PACKAGE_PATH? William
2021-04-21  4:00 ` Oleg Pykhalov
2021-04-21  4:20   ` John Soo
2021-04-21  7:06     ` William [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=CAFBkDVsWPA97kDvWxZrheDvqYQSd7QXw0VGgF3AAL_1GzJG+vg@mail.gmail.com \
    --to=wonko7@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=jsoo1@asu.edu \
    /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).