From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YN0EGMiMX2MzPAAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 09:52:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0KjnF8iMX2PxGQEAauVa8A (envelope-from ) for ; Mon, 31 Oct 2022 09:52: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 2A7162E738 for ; Mon, 31 Oct 2022 09:52:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opPb2-0002Hs-LP; Mon, 31 Oct 2022 03:52:36 -0400 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 1opP4d-0007lf-0R for help-guix@gnu.org; Mon, 31 Oct 2022 03:19:10 -0400 Received: from r0-2.smtpout1.paris1.alwaysdata.com ([2a00:b6e0:1:40:1:0:10:6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opP4a-0008Vl-Dv for help-guix@gnu.org; Mon, 31 Oct 2022 03:19:06 -0400 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: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=L8tWA1Pp+X6j3zlLMqzWMF7NOfmFUnxZmbyuZ8gBR50=; b=m8szbT47CSH+hI0dd+8vZjHVA7 dk298dAmqI8kQFrqUz8DxrrosHgyAHYcgrwuXbCeRoAnBej6c6A3ZV8t5qAuzFIt6JzNDU7lnAdCG gwpqbqWvB4t2SlniqbcYuw2vqPeB7gMgtCbxReIv/5B6l8qIJf/MiRWRgfRXSUP3PhB4=; 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 1opP4S-0000O6-Kl for help-guix@gnu.org; Mon, 31 Oct 2022 08:18:56 +0100 From: Tom Willemse To: help-guix@gnu.org Subject: SCSH libraries search path Date: Mon, 31 Oct 2022 00:18:50 -0700 Message-ID: <871qqoxxyd.fsf@ryuslash.org> MIME-Version: 1.0 Content-Type: text/plain X-alwaysdata-ID: 156802918 Received-SPF: pass client-ip=2a00:b6e0:1:40:1:0:10:6; envelope-from=tom@ryuslash.org; helo=r0-2.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-Mailman-Approved-At: Mon, 31 Oct 2022 03:52:32 -0400 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: , Sender: "Help-Guix" Errors-To: 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=1667206344; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=L8tWA1Pp+X6j3zlLMqzWMF7NOfmFUnxZmbyuZ8gBR50=; b=MLM3zj9EQoqp2glHvk0reB6ou9FoZI/9xElXr6iWQidmk7jAKvk8HLeBwENsnZQI0GfkRR i1U5drcHaIm7LW3m5SXj77Ne66OoMqt/4pQck7eaa30WR7wG0DtuYjqNd1jATR/zc4h4RL BTpHHy01s54bV2EYWjMtdYwx7OoS7re3vEe+LHRgvJ7P+I8YvAaov7Tjdy2nPYE6xLSa0m Afz2HxA2RiTCvNzGeh3N09W3l3ThC7hZvh0vPvl+rUGwlQEJx6Hhyv/h4xpMZSwRG6XgAI +t3SNpNI+y07FawQHRXJCWwazRH+K/O15fWps9F7x42FzbTprIsOgs3bzT8Y0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667206344; a=rsa-sha256; cv=none; b=ahYprWvCO9WSpdEtEXUBITBh4LhXGdKX1Th7E8d77RoOhdS5+NGOJHX7wbU/MU1RHPZMgU gaCfYbpQ+lXk9WLpb4BABCpZv3gz83hDDRVTY+O/BfyAZL1GQbMLCPdeAPS2esyHGcHUBD DTPAT/y77hL7R1YdsG3xoqZ+sDlCFKmb5mHlKrrJrTWvA1yAkhusmzbMTqaBM4OTipAIuG 1wF6mHwXPvH88jc4is3rl/sNoYC2fSNij88QbjLtzkGLboPnU6TdLwtSa0YuyZrRHUucnF eOWc48f40JW7zgPBWsPZ7qnViC6RWw3BHP3OpOmNXiWHxYrahpQwH1/z4bk0/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alwaysdata.net header.s=default header.b=m8szbT47; 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.24 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alwaysdata.net header.s=default header.b=m8szbT47; 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: 2A7162E738 X-Spam-Score: 6.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: Da8XuByXUC6w 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"))))) This successfully adds something along the lines of the following to my profile when I package my library: export SCSH_LIB_DIRS="${GUIX_PROFILE:-/gnu/store/ib05wwxl1p1b5avihw7fhvphxjhq3y97-profile}/share/scsh/site${SCSH_LIB_DIRS:+:}$SCSH_LIB_DIRS" The only problem here is that the SCSH_LIB_DIRS needs to be a space-separated list of strings instead of the usualy colon-separated list of strings. With the value `#f' denoting where to put the compiled default lib dir. For example in my manual (pre-Guix Home) configuration I have this: export SCSH_LIB_DIRS="#f \"${HOME}/usr/share/scsh/\"" To add `~/usr/share/scsh' to the places where SCSH looks for libraries (or packages as I guess scheme48 and scsh call them?). Unfortunately I can't remember how I found out about `SCSH_LIB_DIRS' and I can't find any reference to it in the manual at the moment. I looked at the `', `evaluate-search-paths', and `environment-variable-definition' source, but I think there need to be some changes made in `search-paths.scm' for this to be supported? I can't do it in my own configuration? If there is a way to do this already I would really appreciate a hint as how to do it, otherwise I'll have to see if I can add this support there, if nobody objects. I will probably need some help with this in that case. In case it helps, here is my little script and the library it uses: https://code.ryuslash.org/util/tom/mpd-random-albums/tree/ apologies for the messy UI, I'm still working on updating my CGit stylesheets and as you can probably also tell I'm not a designer. Hopefully this all makes sense :) Thanks for your time! Cheers, Tom