From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#31669: 'guix system' enhancements Date: Fri, 01 Jun 2018 22:35:26 +0200 Message-ID: <874lim8ctt.fsf@gnu.org> References: <20180531164438.1e7a6976@mykolab.com> <87bmcuackk.fsf@gnu.org> <20180601164052.584cbd4d@mykolab.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOqmK-0000DE-CV for bug-guix@gnu.org; Fri, 01 Jun 2018 16:36:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOqmJ-0004Zx-7t for bug-guix@gnu.org; Fri, 01 Jun 2018 16:36:04 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOqmJ-0004Z0-1q for bug-guix@gnu.org; Fri, 01 Jun 2018 16:36:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fOqmI-00022X-9D for bug-guix@gnu.org; Fri, 01 Jun 2018 16:36:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180601164052.584cbd4d@mykolab.com> (Rutger Helling's message of "Fri, 1 Jun 2018 16:40:52 +0200") 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: Rutger Helling Cc: 31669@debbugs.gnu.org Hello, Rutger Helling skribis: > 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=20 > 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. 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-i= nput=E2=80=99 does, except that it=E2=80=99s at the derivation level. Example: --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.tm= pl")) scheme@(guile-user)> ,run-in-store (operating-system-derivation os) $4 =3D # /gnu/store/4igvd1ynxjv3hk8qpf0l9bpb2v157hjf-system 4c209b0> scheme@(guile-user)> ,use(gnu packages tls) scheme@(guile-user)> ,run-in-store (package->derivation openssl) $5 =3D # /gnu/store/yvy6pj9b3rpb3wr98x0sjlxv5g9p5x5l-openssl-1.0.2o-doc= /gnu/store/ggrpw6gh2rnqjwyjf99z8cdw5digc4hb-openssl-1.0.2o /gnu/store/9cdb= 2xydmm012v81l78jliird4f7dy25-openssl-1.0.2o-static 5594370> scheme@(guile-user)> ,run-in-store (package->derivation libressl) substitute: updating list of substitutes from 'https://berlin.guixsd.org'..= . 100.0% $6 =3D # /gnu/store/d9askfqx719bv3610kd6s3jqjh5rnfsh-libressl-2.7.3 538= b1e0> scheme@(guile-user)> (define s (open-connection)) scheme@(guile-user)> (map-derivation s $4 `((,$5 . ,$6))) $7 =3D # /gnu/store/x5gyjvmq663jhd1pc1pc5w46hpcghvwd-system 618bf00> --8<---------------cut here---------------end--------------->8--- It=E2=80=99s a bit of a sledgehammer and =E2=80=98map-derivation=E2=80=99 m= ay be buggy on the edges, but worth exploring. :-) HTH, Ludo=E2=80=99.