From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rutger Helling Subject: bug#31669: 'guix system' enhancements Date: Sat, 2 Jun 2018 14:29:23 +0200 Message-ID: <20180602142923.048f3cac@mykolab.com> References: <20180531164438.1e7a6976@mykolab.com> <87bmcuackk.fsf@gnu.org> <20180601164052.584cbd4d@mykolab.com> <874lim8ctt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/4b0xMeuhczUROLZ860NdDAD"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fP5fZ-0003GC-Lp for bug-guix@gnu.org; Sat, 02 Jun 2018 08:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fP5fW-00011y-Dj for bug-guix@gnu.org; Sat, 02 Jun 2018 08:30:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50569) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fP5fW-00011f-92 for bug-guix@gnu.org; Sat, 02 Jun 2018 08:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fP5fV-0003L3-WA for bug-guix@gnu.org; Sat, 02 Jun 2018 08:30:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <874lim8ctt.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 31669@debbugs.gnu.org --Sig_/4b0xMeuhczUROLZ860NdDAD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable That's neat! I'll play around with it later, thanks for the tip. On Fri, 01 Jun 2018 22:35:26 +0200 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Hello, >=20 > Rutger Helling skribis: >=20 > > That might cause confusion like you said, so I'm not sure if that > > would be an improvement. > > > > I guess I was wondering whether there was an easy way to do > > something like build your entire system with a newer Mesa, or use > > LibreSSL instead of OpenSSL as mentioned. Of course you could > > change your own git checkout, but that's not as elegant as > > '--with-input/--with-graft' etc. =20 >=20 > Another option would be to operate at the derivation level rather than > at the package level. There=E2=80=99s a currently unused procedure called > =E2=80=98map-derivation=E2=80=99 which is similar to what =E2=80=98--with= -input=E2=80=99 does, except > that it=E2=80=99s at the derivation level. Example: >=20 > --8<---------------cut here---------------start------------->8--- > scheme@(guile-user)> ,use(guix) > scheme@(guile-user)> ,use(gnu) > scheme@(guile-user)> (getcwd) > $2 =3D "/home/ludo/src/guix/guix" > scheme@(guile-user)> (define os (load > "../gnu/system/examples/bare-bones.tmpl")) > scheme@(guile-user)> ,run-in-store (operating-system-derivation os) > $4 =3D > # =3D> /gnu/store/4igvd1ynxjv3hk8qpf0l9bpb2v157hjf-system 4c209b0> > scheme@(guile-user)> ,use(gnu packages tls) > scheme@(guile-user)> ,run-in-store (package->derivation openssl) $5 =3D > # =3D> /gnu/store/yvy6pj9b3rpb3wr98x0sjlxv5g9p5x5l-openssl-1.0.2o-doc /gnu/= store/ggrpw6gh2rnqjwyjf99z8cdw5digc4hb-openssl-1.0.2o /gnu/store/9cdb2xydmm= 012v81l78jliird4f7dy25-openssl-1.0.2o-static > 5594370> scheme@(guile-user)> ,run-in-store (package->derivation > 5594370> libressl) substitute: updating list of substitutes from > 5594370> 'https://berlin.guixsd.org'... 100.0% $6 =3D > 5594370> # 5594370> =3D> /gnu/store/d9askfqx719bv3610kd6s3jqjh5rnfsh-libressl-2.7.3 > 5594370> 538b1e0> scheme@(guile-user)> (define s (open-connection)) > 5594370> 538b1e0> scheme@(guile-user)> (map-derivation s $4 > 5594370> 538b1e0> `((,$5 . ,$6))) > $7 =3D > # =3D> /gnu/store/x5gyjvmq663jhd1pc1pc5w46hpcghvwd-system 618bf00> > --8<---------------cut here---------------end--------------->8--- >=20 > It=E2=80=99s a bit of a sledgehammer and =E2=80=98map-derivation=E2=80=99= may be buggy on the > edges, but worth exploring. :-) >=20 > HTH, > Ludo=E2=80=99. --Sig_/4b0xMeuhczUROLZ860NdDAD Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEAVThuRzJ2e93ZI3n86cn20T8yjYFAlsSjaMACgkQ86cn20T8 yjYv8Af+Oi/qebWjKLmYU0D44+O4o0e3wOKr54t7v+32e8YBrZ6+eBhRSRpUpI5+ FosYfbhMUEft9t7NK7yO+wLkmxOfoy0Yv/CNyC8an5AzXeKKMf69jvh+u2rw8lGu /c89IoOW67iHfS5FoEIaoHURBmG98oqi/vzriOStk/t5NLx+eOI8FRMQfMh44TDv Pt+OYQBjSasunm950tBd5vFDy3QGzMs2pYZ93gsDb6hjkoMmm8XN952NaAoU7Kg5 Z/mG0V/2iDG2XjwJY6GblWUXr/EPRwxO3BlCOybXgJ70ZkAGZh8yXFpwFz3b+CuN eVZODz44XIaslR3+I+WN5vQBkDkNCw== =ZowF -----END PGP SIGNATURE----- --Sig_/4b0xMeuhczUROLZ860NdDAD--