From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OPz0AxSYcWPRpQAAbAwnHQ (envelope-from ) for ; Mon, 14 Nov 2022 02:21:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UGgSAxSYcWNWRAAAG6o9tA (envelope-from ) for ; Mon, 14 Nov 2022 02:21:24 +0100 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 CD7F4120D4 for ; Mon, 14 Nov 2022 02:21:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouNi6-0001LW-3X; Sun, 13 Nov 2022 19:52:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouNi3-0001Hj-0l for help-guix@gnu.org; Sun, 13 Nov 2022 19:52:23 -0500 Received: from r0-4.smtpout1.paris1.alwaysdata.com ([188.72.70.8]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouNhx-0007CS-Jj for help-guix@gnu.org; Sun, 13 Nov 2022 19:52:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alwaysdata.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Gz1FAGnZ51rwI2vnuNBC9WLroge5bnZKVopPS24Qwaw=; b=tOh4eXq3v0DIww+8YfdE4tK7a u9cpCOtIMYnD9NnwzfDUZPd2cXWExXlPSHsyW3p94yLfOzWpUXqeJgM8N20XrWebPih9AZg5Qzk0g 0wHn9JkeZ/TufQ3F+6dS1xPZ3dON0H/wBaiPhCplH4jjMJSJY2SmE6FM5koJmXdrdNu0Y=; Received: from node-1w7jr9pql4sl12vllf8pnk2zz.ipv6.telus.net ([2001:569:5854:a00:d390:e431:f82d:72f] helo=localhost) by smtpout1.paris1.alwaysdata.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ouNey-0007oF-7z; Mon, 14 Nov 2022 01:49:12 +0100 From: Tom Willemse To: Efraim Flashner Cc: help-guix@gnu.org Subject: Re: SCSH libraries search path In-Reply-To: References: <871qqoxxyd.fsf@ryuslash.org> Date: Sun, 13 Nov 2022 16:49:05 -0800 Message-ID: <87k03ymkce.fsf@ryuslash.org> MIME-Version: 1.0 Content-Type: text/plain X-alwaysdata-ID: 160024548 Received-SPF: pass client-ip=188.72.70.8; envelope-from=tom@ryuslash.org; helo=r0-4.smtpout1.paris1.alwaysdata.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668388883; 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=Gz1FAGnZ51rwI2vnuNBC9WLroge5bnZKVopPS24Qwaw=; b=HHpplUyRBfZUjH4hF641eV3bMRTPg2Uv81BePb9S1bdUNIwGpLmHBI6bfbZvSQ6mWVMPop iG76+ZC1u4j/j/fPBazFvnLH2LnZ2iNOQ/IRCHnrXRLnggSem6hDe/2Vj6jhyqXMiPWOYd 1OhJ2lTyRchdIYqWcIgx1o7N2PV4KZRWz4AfNw3UBd5UFhDvIHd9wvDc6VR9XieHlYz4Pu spfjMBkBFs0IWELGPbFnHDL1hqCY7S3N8pjF5ZR3F0GnLI7uhzeqhItCBpC4Us2QlCJN/d ytSCulrYIVGbtpFmYgLJ0LuXywti3loZL/5SxhtpBxKkDKkreHMez58aY7Im9Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668388883; a=rsa-sha256; cv=none; b=YcGaeldjdT0+hpHz9OC5zEiyQpA4Pb7nINy8/CUfIVcos9HFSs6ftHsbcchkIrICYg394X JAu/jOjrWxCb7hQSsYzVbvpQ3a4ukaqfz04AuRg3nI63AdaXddpciM3UT39Ye7C6SbafVd ulH1aDgi3b3RK67SPLifIKtdu44/w5Gyxxdsd860/OO3HyDfJbYTmkboNjQNrxCxFYtqkv CgsK8pU9/kQl9medF37zxUBo19v9SdGDRo8jifupZhhqIWLBQdZL2VTUp1mf38xdKVM1Ji MGkkCBco8Vm9kd6RjT/eEF5evjtxs4fmn+ywx1Dh1pd0zgfw6A/a1hFQs1vo+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alwaysdata.net header.s=default header.b=tOh4eXq3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=ryuslash.org (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alwaysdata.net header.s=default header.b=tOh4eXq3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=ryuslash.org (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CD7F4120D4 X-Spam-Score: 6.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: H2FtqhKRYzAv Hey Efraim, Efraim Flashner writes: > On Mon, Oct 31, 2022 at 12:18:50AM -0700, Tom Willemse wrote: >> Hey Guix \o/ >> >> I've been wanting to package one of my little scripts in Guix Home and >> it uses a little library I wrote for SCSH. I've been looking at how >> Search Paths work and I'm having trouble figuring out how to make this >> work. >> >> Search paths seem easy enough generally, I was able to add a simple >> addition to my configuration by just adding this to the scsh package >> definition: >> >> (native-search-paths >> (list (search-path-specification >> (variable "SCSH_LIB_DIRS") >> (files '("share/scsh/site"))))) > > Try adding the 'separator' field, so it would look like this: > > (native-search-paths > (list (search-path-specification > (variable "SCSH_LIB_DIRS") > (separator " ") > (files '("share/scsh/site"))))) Thanks for the suggestion! Unfortunately this gets me a value of `SCSH_LIB_DIRS' like /home/chelys/.guix-home/profile/share/scsh-0.7 which, when I try the command `scsh -ll mpd.scm -o mpd' causes the following error to appear: error: Illegal path element in $SCSH_LIB_DIRS $SCSH_LIB_DIRS: /home/chelys/.guix-home/profile/share/scsh-0.7 The following element is not a string or #f: /home/chelys/.guix-home/profile/share/scsh-0.7 It's because SCSH treats the contents of `SCSH_LIB_DIRS' as "a sequence of of s-expressions, which are `read' from the string"[1] and supports either string values or the value #f. So `SCSH_LIB_DIRS' would have to be in this case: "/home/chelys/.guix-home/profile/share/scsh-0.7" I guess this just isn't supported as yet in Guix? Cheers, Tom