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 cMaGC+GIZ2PTYAEAbAwnHQ (envelope-from ) for ; Sun, 06 Nov 2022 11:13:53 +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 KJaWCuGIZ2P3YgEAG6o9tA (envelope-from ) for ; Sun, 06 Nov 2022 11:13:53 +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 B7806546F for ; Sun, 6 Nov 2022 11:13:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orcef-0000oA-8h; Sun, 06 Nov 2022 05:13:32 -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 1orceZ-0000nK-Es for help-guix@gnu.org; Sun, 06 Nov 2022 05:13:23 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1orceV-00053a-Dz for help-guix@gnu.org; Sun, 06 Nov 2022 05:13:23 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5so5305130wmo.1 for ; Sun, 06 Nov 2022 02:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=TUJ3q/R72RDF9h6Fp/SnVnOjC9YKdZ1XAy8BlwsbvdU=; b=izCuY30wzCglk5QSacPxrRevb0tvJkygBkmtMGZkFQ+vooPZesRh2Nal5WVymnZvf9 P+ZMobqkySiHAIta+agFVGIxvSQlZVz8FAl8TmuMPSNanAimABD9g0A9FM0bH44tw+co 52EA+ej28GRF8k9xT6cAFdq/k4RbHS7ivBoRMGab7HdJYcRr9eZy29fcetMfg2D0cL4W UFEYSrf9y2VkIHugJUvH9+gllrKjOJXBrTB2UHu2MHzWdAStr3toUE5evKaOqMTpF1eX 0bmezrG+T3vJOIklUFuGTwB2udzFOncyUl5PzOZlvQEk0LS3stFmqZHrSVrYogDAfV1k pn2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TUJ3q/R72RDF9h6Fp/SnVnOjC9YKdZ1XAy8BlwsbvdU=; b=HG5Ux6RQLyIB/YYeVHMrjpG1ub/k/0IPUCKlsZxKq74RichS83Vk/NXV/G9OsqkaF7 sR2N4k+iAX2kezEj5TynfPPm9zjlTCf2tvGdkAk1wUgsXIPOI/fy7bNG1WHEbZiPf837 vHaav4cH9Vfc0KJIHNJt1PrCweaR1YBKAGw41NlfyTrEtYatblPuTubmjBH50D9heHHY P4gK8ibJac3mYtVn7MokCCQbE4VNQbqkuMyNs/NET3KLIV2bvXKkhF6VHSOQwP4Oj7s9 Bwy6koHN72zABKjLKdn/0pCIfuVtCWEl5szjHjOkAC+J92VUYnIZ+XAZ3ghAIgp5ogE7 Ahhg== X-Gm-Message-State: ACrzQf33BXPoEA0NCWVBPht62RGK5CbHnt7Lc9pJbIWIbV1LkEV+3fvO 3X2+N0NipZi4Vb9dxVgxd5w= X-Google-Smtp-Source: AMsMyM7xBENx56pQ+wsmO4h+2dtzTyeuSs1vzb73krOK6e+5MjzzhwpJ65HQ4aT0tr/XHmSRhY2kWQ== X-Received: by 2002:a05:600c:1819:b0:3cf:63fe:944a with SMTP id n25-20020a05600c181900b003cf63fe944amr28822371wmp.17.1667729596583; Sun, 06 Nov 2022 02:13:16 -0800 (PST) Received: from localhost ([141.226.15.67]) by smtp.gmail.com with ESMTPSA id iv9-20020a05600c548900b003cf87623c16sm9168924wmb.4.2022.11.06.02.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Nov 2022 02:13:16 -0800 (PST) Date: Sun, 6 Nov 2022 12:13:14 +0200 From: Efraim Flashner To: Tom Willemse Cc: help-guix@gnu.org Subject: Re: SCSH libraries search path Message-ID: Mail-Followup-To: Tom Willemse , help-guix@gnu.org References: <871qqoxxyd.fsf@ryuslash.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BYif2UOYzlzNelns" Content-Disposition: inline In-Reply-To: <871qqoxxyd.fsf@ryuslash.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=efraim.flashner@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1667729632; 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=TUJ3q/R72RDF9h6Fp/SnVnOjC9YKdZ1XAy8BlwsbvdU=; b=L0nltE+rhq/f+pJJV+kiYjUjKKhZwPnf6sf3pDpjJTgupr1dh4vYQ0gRjtiJ87MaY2SCs+ 6g7TmgjBS/Ggb4rWsKEJ36rN9xyjMYDA7DT0RFlPW4aPk4mDXHvrZnUObfdVFLd0LYtHZB JoOr2HxU56f/225zoNQ4Og5u1186pSx82Nz3H33c/Yl+S3pfdZ9yC4Kt58IhUT+SMDh6AD j9f4yNFVFpmyB4zKIT7vmbvYsuKhds+Q1QqJnfELVO7Gj4yjTXU4mKTLfoVGAUCw53nlWM uuij2PcUeiWGApjk7U6cAESFgJc9UYXrNcKn1jHgv27cVFCIq4t9SFxOhtpZwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667729632; a=rsa-sha256; cv=none; b=cjSAznWeXrT71NAGFeD51+bNhVoncNekjU7tYjw2fQrkcNey99G0sWramLKHWWko476vo+ c6w960vpnZzJzaViWy4waCC1Qn+5Te068lybFXoIWid43n4sfdZMOo8KkC+CNFW67VaxxM P7W0wTniJjHFjUEnx1Sn7fP/9o1gR5JySgVTG+bchH8Ujdw4mFaS94x9wks2IbM4SUcxcK yz1f5ESIzmgx03ga/o57vOnAUKhg/p+1jT48FEpEb8xorzf4dZtMsXSAd7GgHUkyhyWF9n 0ptSW4y8blDXILnAy8mYp7T38/tco1zdKjaBYyhGM9mkeWI8KGIP8HeCrbJWqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=izCuY30w; dmarc=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: 1.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=izCuY30w; dmarc=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: B7806546F X-Spam-Score: 1.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: WdG9Cxsamyoj --BYif2UOYzlzNelns Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 31, 2022 at 12:18:50AM -0700, Tom Willemse wrote: > Hey Guix \o/ >=20 > 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. >=20 > 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: >=20 > (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"))))) > This successfully adds something along the lines of the following to my > profile when I package my library: >=20 > export SCSH_LIB_DIRS=3D"${GUIX_PROFILE:-/gnu/store/ib05wwxl1p1b5avihw= 7fhvphxjhq3y97-profile}/share/scsh/site${SCSH_LIB_DIRS:+:}$SCSH_LIB_DIRS" >=20 > The only problem here is that the SCSH_LIB_DIRS needs to be a space-separ= ated > 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. >=20 > For example in my manual (pre-Guix Home) configuration I have this: >=20 > export SCSH_LIB_DIRS=3D"#f \"${HOME}/usr/share/scsh/\"" >=20 > To add `~/usr/share/scsh' to the places where SCSH looks for libraries > (or packages as I guess scheme48 and scsh call them?). >=20 > 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. >=20 > 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. >=20 > 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. >=20 > Hopefully this all makes sense :) >=20 > Thanks for your time! >=20 >=20 > Cheers, >=20 > Tom >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --BYif2UOYzlzNelns Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmNniLYACgkQQarn3Mo9 g1HBHQ/+Lm+cihqdgPjb46OCZjiWpXtXxXnC2795pMfmOBBRpvqDuh26goS7x7xd lpF2sPQaho6zmikElrP2JP6EZ/T7sIiNu/OZdHg/9W4XcA/fH5X2B9/ROiQbumAw Mzpn0o25p5rmCFlOTCkFKcI4kqPPmFlJ0ki5i9GRDAn8DhsOeA4NS+t3pV84KHpm 9nH8/zx0vrtIeYapRM1ONxQGxvVDFPrVSMJmr/yXzxy18Z6ue5pzKwYFonXU7pzA vtPKlWcAkVN45ABxT9N3lDWM6V+3XaldHbiEZ9nWK+mxHkJZ2U8YHMvkt3ESK5AW QH4723JR1Cq7iAcmqFBQNPHxtRs1eXXiOl5VxH5GClRgpWG+XTqKt2mU+3FjpWrZ fIIBQMCYC7pT/ghQGh6AaeVPamMhKTNrvRpWTiTc9xxS3iXKQu3AFKlLDTieZQjT NI+1EVU9sCSoK6RtjFoc4CHY3dd6UtPqDk6Oof+XghTuiaFF3lcj1Lfk3YjPb4Ar YGonNpC1uAeKRV2D+V1OsJno8qU7B/yub0luwXU+QMWY+aWjDwzLrf+GnrwKAIFh SEsyn2w6fzygOggKK/EmMVhZJcY4CTtPjyswOsKNTotpreNdZ4AzwRXoeafgVx1F kFtV3B71u7uabyj7bFtV/nh4nxUM3+EBQAhx46PG/jXgccQu6eE= =+oZs -----END PGP SIGNATURE----- --BYif2UOYzlzNelns--