unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: John Soo <jsoo1@asu.edu>
To: William <wonko7@gmail.com>, Oleg Pykhalov <go.wigust@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: xmonad, xmonad-contrib & GHC_PACKAGE_PATH?
Date: Tue, 20 Apr 2021 21:20:16 -0700	[thread overview]
Message-ID: <78b102c6-7199-4060-9783-789b33d4607a@Canary> (raw)
In-Reply-To: <878s5cmgmn.fsf@gmail.com>

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

  reply	other threads:[~2021-04-21  4:26 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 [this message]
2021-04-21  7:06     ` William

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=78b102c6-7199-4060-9783-789b33d4607a@Canary \
    --to=jsoo1@asu.edu \
    --cc=go.wigust@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=wonko7@gmail.com \
    /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).