From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uHROOcr1cmBBVQEAgWs5BA (envelope-from ) for ; Sun, 11 Apr 2021 15:12:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eGNGM8r1cmCLWQAA1q6Kng (envelope-from ) for ; Sun, 11 Apr 2021 13:12:42 +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 2DCA9272C7 for ; Sun, 11 Apr 2021 15:12:41 +0200 (CEST) Received: from localhost ([::1]:42418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVZtJ-0002iq-23 for larch@yhetil.org; Sun, 11 Apr 2021 09:12:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVZt9-0002iT-UJ for help-guix@gnu.org; Sun, 11 Apr 2021 09:12:32 -0400 Received: from knopi.disroot.org ([178.21.23.139]:46708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVZt7-0003iT-Ob for help-guix@gnu.org; Sun, 11 Apr 2021 09:12:31 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 346F850CD7; Sun, 11 Apr 2021 15:12:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zp4MKu3Q8KqT; Sun, 11 Apr 2021 15:12:24 +0200 (CEST) References: <87sg3xec75.fsf@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618146744; bh=BIXPzqIJC8fa5N6C+OduhPaJhRJP98hlf2Mp4V8yq0E=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=GicTw2gie/J25lQVeKDJwQG5yg3UMGG9ALpYOGrnSgqIMIJUsKjwEF/Jhn4b0dNuE 4MgGrSNOF1bvVfOTgUei+tqf1apQo6W2j87Tis57OLmyyYCNxDbjoEcPKBwWxWuF34 D4zYk7jzgaSkvH5D4zfSli8pAnZ75d9qakrVppbvBDVZa2rqLC31KlDc9wqji5ID0D /TP8MFS8Q8sJDDKFcUz5Z0FybptgSrWSy6mQGlnOO5R6uIZsEPr/dYwTIUbUN5jyLi sjypEBQofZ8lnWpPA9RQz5CCYBPBMryzszLGB54w/wjxwSyxwZSLTpWMUUQrGl2s90 acYM6E2ldOaWw== From: Gary Johnson To: Bone Baboon Cc: help-guix@gnu.org Subject: Re: Haskell program build and run using Cabal In-reply-to: <87sg3xec75.fsf@disroot.org> Date: Sun, 11 Apr 2021 09:12:08 -0400 Message-ID: <87k0p9m0d3.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1618146762; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JOI6/PCuyXJEqqV0+hr5Eft0eB+2FIcIHXRyIOdlc2c=; b=R0dXFtLIb5hw1uAYPwA91d5p4xiwSV57+1tOZv3KCbjC10ECK09VX/Omz5S5H5ZEwKfeh4 FEH1198Wr73ei94pZ1QFl9Jn+jnyvFv/CVnWZIuVi3xZzmtUhPcxuoIRWXF2F2YumsEwDS LDIzI8JolyW8OBuNi3YiZkgb2bzWrlG5Oq2KwO3NkulKfbqqt3OsUUB/XIf2hxk1Dkw42p 8q8o54Ynz8Tfg569sLawM0aK0+yjO/09wgPXiZpSQtec16EKQTksnijeSK6Zmhaibod+VB KcVwIspiLe7YfUtp7ct0c4sFYHB6ld5Q+ofkobVBsvqsmYeqEE771Hn2CTg2FA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618146762; a=rsa-sha256; cv=none; b=jPKX3P1R1LXvLz0HoNyWM9/4b2Tuy08OnuG2LpaZZfE9aKOVq64ymwr1PZTYReaf1kB+Ot E4U2kG/uTreGcqDBOXislFfwZ40Ia9JgsQOQpJAJYSJHv/BcgFEHuT+tWanvtqU9DEuux3 x/PW9xyAZ5Aqad3298DBGNHlvxiY4dKmFw5IKZaG+BmNFVMIXKWHm6EsV1XOnstUsZfQvO NJXm3nJ4ZL3Oh5kKn5oltskNieCnVQ/rAdgUoECITvCWx68iH6yvifFiXVdGoPVUTF+mtk 5EAyBc253m9lhH+A85VB+WVL6e691lJajSK16BsfTz1AXMgGUSUIbwwVod8J5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=GicTw2gi; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: -1.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=GicTw2gi; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: 2DCA9272C7 X-Spam-Score: -1.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6a4fDIH7LK8C Bone Baboon writes: > I am trying to build a Haskell program from source and run it. I am > using Cabal a Haskell build tool to do this. I am able to build and run > this program without the following error messages on other Linux > operating systems. > > [snip] > > Doing an internet search for this error message shows people dealing > with it by setting environment variables. > > With Cabal's `new-build` and `new-run` commands I am running into issues > with environment variables. Are environment variables managed in Guix > system configurations? I searched the Guix manual for the search term > "environment variable" and did not see a prominent section on > environment variables. That leads me to guess that in Guix environment > variables are left to configuration files in the users home directory. Guix System (unsurprisingly) has a built-in preference for building packages with Guix. For building Haskell programs, check out the `haskell-build-system`, which uses cabal and ghc under the hood. Also, if the package you want to install exists on Hackage (https://hackage.haskell.org) but doesn't have a corresponding Guix package, you should check out the Guix hackage importer: $ guix import hackage -r PACKAGE-NAME@VERSION This can auto-generate a Guix package definition for the corresponding Hackage package that you can then use to install it through Guix. Finally, to answer your question about environment variables, you should stick them in your home directory under your shell configuration script (e.g., ~/.bashrc, ~/.bash_profile). Happy hacking, Gary -- GPG Key ID: 7BC158ED Use `gpg --search-keys lambdatronic' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org ======================================================================= () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html