From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Some general guix questions Date: Tue, 22 Jan 2019 11:28:57 +0100 Message-ID: <87y37drno6.fsf@ambrevar.xyz> References: <87o98ryuat.fsf@santanas.co.za> <87muob5az4.fsf@ambrevar.xyz> <87zhsa7up1.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gltIk-0006NV-Vg for help-guix@gnu.org; Tue, 22 Jan 2019 05:29:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gltIk-0003Sf-3L for help-guix@gnu.org; Tue, 22 Jan 2019 05:29:02 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gltIj-0003Rv-SY for help-guix@gnu.org; Tue, 22 Jan 2019 05:29:02 -0500 In-reply-to: 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: George Clemmer Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I realized that something was missing from the above manifest generators: t= he outputs. My shot at it: =2D-8<---------------cut here---------------start------------->8--- (use-modules (guix profiles) (ice-9 match) (ice-9 pretty-print)) (match (command-line) ((_ where) (pretty-print `(specifications->manifest ',(map (lambda (entry) (let ((out (manifest-entry-output entry))) (if (string=3D out "out") (manifest-entry-name entry) (format #f "~a:~a" (manifest-entry-name entry) (manifest-entry-output entry))))) (manifest-entries (profile-manifest where)))))) (_ (error "Please provide the path to a Guix profile."))) =2D-8<---------------cut here---------------end--------------->8--- Unlike George, I'm not sorting the entry, so the latest package will appear first in the manifest. I haven't made up my mind yet as to which one is mo= re useful, sorted or not. Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlxG8GkACgkQm9z0l6S7 zH+1jwf/TgtmusrojObFC003eUBvvEqnNEY9yf1bf4DhrvtetUx4+aNxq08oxAJD feGk9+uwSP01/caH8Lw33vE20wpv8DVgWtRjyVfEIN6nqte4SdEyRZPVL0BNc+ky TmmE3zVaqDu9QZ0fJ6yJL1gyxaLFiRWw1CHJ3++R+VbkxtoqrC2FQKH1dhFw6D1X /bPONfmZOalpD0F2W+PrWfHXJH9D0Q87NvDq9DDR4QidD0hgfKgV2xAU9Q9pjc+G oGfmozOOV6TjkGirL880IA2CvRRKGQuN9Gkan0sKFqO/Ao8gDentkLu5ZNT/3rd3 GuQNlAkfjaN9Cd9grVAipAZMgYBvQQ== =FYbE -----END PGP SIGNATURE----- --=-=-=--