From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QJ+1ATaWgGBgagAAgWs5BA (envelope-from ) for ; Wed, 21 Apr 2021 23:16:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id BoDeODWWgGDeLwAAB5/wlQ (envelope-from ) for ; Wed, 21 Apr 2021 21:16:37 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7B0221F96F for ; Wed, 21 Apr 2021 23:16:37 +0200 (CEST) Received: from localhost ([::1]:44576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZKD6-0004SE-Me for larch@yhetil.org; Wed, 21 Apr 2021 17:16:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ6xG-0006Dd-Ld for help-guix@gnu.org; Wed, 21 Apr 2021 03:07:22 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:35561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZ6xD-0008AC-QP for help-guix@gnu.org; Wed, 21 Apr 2021 03:07:22 -0400 Received: by mail-ej1-x636.google.com with SMTP id u17so61984306ejk.2 for ; Wed, 21 Apr 2021 00:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FjLLRdBXutDv+JcZGszV7rMx6837u8teCCzrZTuoZzI=; b=uniV5vdl0tl+xcPd66fjtCTjuE60WEL/klB6KWjqLb/BfGBfoMFeTFY+Y4EopUUKBt FMeXZRreJtW0MtdeuYLIzoxAUJjTuYKO197pcz9qDrLGjB3a/ljx2Sxuv81IOZKfkLxJ uODkn7RA7e9PAP5ChRTt72hr0cyu9KYVC4VvALWnIiE3lo3xFH85Vo714EE3+eFfCmGT 8aNZSX9VhCU5WHtes/8YZlJu0UANQwF32nEm3dXMRAHs7+RP92AibwuG9Y76c0A+k5BQ U/3xUnjs1ILlhINyvzIphl6KoKeNGM6n0wiwWmTrL7Pkspu0FFd16rAErKDnXY27htqm A7Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=FjLLRdBXutDv+JcZGszV7rMx6837u8teCCzrZTuoZzI=; b=q0UI2/lOU9seZ5aiG7RIi055jVIosBia5tfs5MoVTlG9zFA7SOgjuIxZF/ASo/8wTs 8Va8j6G07FKsDo2hOycyv31ViRZwWBj01l+LLetmc8yJ9+3W1SxLnLLvMShqI03HmAjv 1NDe3AveN+ozDfzCRSl0IPFIgOGn6BX3F5bNo9kTQOEbkkbxJlvfIYN+ourw+tIkAviO mlxXqGdmMRIBPpm3IbsQnB9DZH4CpbUXMdET91LXsjqwOmOSDjEErDOKn8VBdM6fYo0g XIDAijlK2RqYuOwkj2k1BFbcyX9wRfVKY3HruNgsKnh1HQFvhQ5qETa498fotuW6Qgh3 1wWQ== X-Gm-Message-State: AOAM533+W7LyRnsm1LIKUOlPWnevIIRCI5PHwl0rDJuOz3nGMrwtPOhN 0wmu1l3XU5cmQ3vUSEcMIbxzqJohXI3cu76ccqk= X-Google-Smtp-Source: ABdhPJxbIcrSo/W2aX3alozQMb5NLKuNK5gmGQMx1MZjlbcElJJPquh5+DWzIhcfWNBDsQy7GECjmykYHvkMKWwnEbE= X-Received: by 2002:a17:906:5d13:: with SMTP id g19mr31104671ejt.206.1618988837844; Wed, 21 Apr 2021 00:07:17 -0700 (PDT) MIME-Version: 1.0 References: <878s5cmgmn.fsf@gmail.com> <78b102c6-7199-4060-9783-789b33d4607a@Canary> In-Reply-To: <78b102c6-7199-4060-9783-789b33d4607a@Canary> From: William Date: Wed, 21 Apr 2021 09:06:41 +0200 Message-ID: Subject: Re: xmonad, xmonad-contrib & GHC_PACKAGE_PATH? To: John Soo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=sirrobin2318@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 21 Apr 2021 17:15:13 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619039797; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FjLLRdBXutDv+JcZGszV7rMx6837u8teCCzrZTuoZzI=; b=rr1kCRWQ4iBX5Owobzxi6y40p5Ch5cuOnhQtt6YKoQv2h8x+l8IH92WPVjVbpBCWyLkaiq OISxCG+Aq/Z/F4Sz22pc4gQqJf+ADrd6neRnzM0+yghs5rkTpnzmwwunilLhUBIGxuXmns G+MnPdQcJ8YsrRWTt4HzpC3p/ZXayJzMhWKZxjmcDgbvE9TFbucn0Fcn8lgeCWGNb8Mp36 ypxh/iA+RYyqDHWxE+IdBLYgShh6TcU3TIpVF6XZYiyG1iApDXIKqSVv2voGxdvS06die8 fu5LOaFm1UZPoVwmqqEjA8/O/nALd3EC1tYCe2CX6EtYBCKSzgoEwQT8B93aBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619039797; a=rsa-sha256; cv=none; b=uKgYyWz81A96I/gIIId3V0281T61pP/LLWNo7kTSgfkzQEDJxxy+0XALbtHhFjfDPq91ih ooWZtaDEEtQixeeChPN429e+cl6rwFfh9KJXCtb+xTJWIMxmKvLFRgjvq//BNrXx9BMFUO wGO0VUXT595XVhcF0OHtyX0aVccxnCe0/dv+bLOKbpzWeZwBeH8ueLysP9tO7OYKDym8Gg pKBJZrDML6BY5QyBuDquJyouPuIpr11DnWE12rriVZ6OCrvMIifFUmtxplz5ne4INzI71D PB+KNMbrGJ9zW4IbdxskzzrP5eIelvWEhiKhuZwzw/RzXlhilwVKgS22pc6XgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=uniV5vdl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=uniV5vdl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 7B0221F96F X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: IOM97luKkWa4 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 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 install= ed haskell-build-system libraries installed via guix. I=E2=80=99ve been mea= ning to look at this for a while but I have not had the chance. Could you p= lease 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-d= bus-1.2.7.conf.d/ \ > -package-db $GUIX_PROFILE/lib/ghc-8.6.5/package.conf.d/ \ > -dynamic xmonad.hs > > Hope that helps, > > John --=20 Wonko