From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Package request inxi Date: Thu, 12 Apr 2018 14:39:41 +0530 Message-ID: <874lkgpz8q.fsf@gmail.com> References: <87h8p0wb6m.fsf@gmail.com> <87woxwkypg.fsf@gmail.com> <874ll09kn6.fsf@gmail.com> <87po353efj.fsf@gmail.com> <87bmepd5dc.fsf@gmail.com> <87o9ip3b3y.fsf@gmail.com> <87muy93aw5.fsf@gmail.com> <87y3htbofq.fsf@gmail.com> <874lkghp4a.fsf@gmail.com> <873700hoq4.fsf@gmail.com> <87muy8dcvl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6YEo-0004Fn-BO for help-guix@gnu.org; Thu, 12 Apr 2018 05:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6YEk-0008SY-AU for help-guix@gnu.org; Thu, 12 Apr 2018 05:09:50 -0400 Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:53222) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6YEk-0008SI-4p for help-guix@gnu.org; Thu, 12 Apr 2018 05:09:46 -0400 Received: by mail-it0-x22d.google.com with SMTP id f6-v6so6406595ita.2 for ; Thu, 12 Apr 2018 02:09:46 -0700 (PDT) In-reply-to: <87muy8dcvl.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Chris Marusich Cc: help-guix --=-=-= Content-Type: text/plain See https://github.com/smxi/inxi: it's a Perl script that calls various programs (if it finds them) _at runtime_. Basically inxi makes a number of `system PROGRAM` calls, where PROGRAM is found in the PATH environment variable. Because most of those dependencies are optional, it could be nice not depend on them. Which means no input at build-time. But then we cannot substitute the relative paths by the static full path to the store. Another approach would be to _not_ have optional dependencies are go more Nix-y as you suggest with including all the required programs as input and storing their full path inside the inxi script. This is hard though, because it implies parsing a huge Perl script... We could also go the dead-simple way: leave PATH and paths to their current values: the only downside I see is that inxi could pententially call programs of the same name installed in user-specific folders (e.g. ~/.local/bin). -- Pierre Neidhardt To save a single life is better than to build a seven story pagoda. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrPIlUACgkQm9z0l6S7 zH8u7gf/fdENYcvcTHf+1A+EfJ3+woP2BE1+VbnY+F4yz6GnZk0ZZoHyO81bfzBb TN2C2e4meDcmc5xiG/VDjrYVx3TDAJpG0G39v9HmVfwiggfXJqWbfkB4zEAl590V Y1GlNeGlmNee+BdrWwiZ2r6JXZ2vtdJcB9xH0TI7A5Bkmh6L6F/H0xOrpJ/Exz1N J7ozNH4oCrpeooTuneIdNl9lT7Xzhq9clfJS8MFVKekKnJKQwuTYiUQQRiecKYyQ nyMI5jPhk7dlNooGKdvcB4d60lfOZRsLbUrSCdkSDgPf+HwUJ4q9waxvg/QXvbtS pXV/CyzB6cKwd6WX72K1xs9K3abL6A== =X5Yd -----END PGP SIGNATURE----- --=-=-=--