From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: gexps Date: Thu, 01 Sep 2016 14:59:28 +0200 Message-ID: <87inufn5cf.fsf@gnu.org> References: <87zinrrgt2.fsf@gnu.org> 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]:53915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfRaj-0001yF-IZ for guix-devel@gnu.org; Thu, 01 Sep 2016 08:59:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfRad-000694-Ev for guix-devel@gnu.org; Thu, 01 Sep 2016 08:59:37 -0400 In-Reply-To: (David Craven's message of "Thu, 1 Sep 2016 13:58:31 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: David Craven Cc: guix-devel David Craven skribis: >> If we force use of the host system type (say x86_64-linux), independent >> of (%current-system) (say mips64el-linux), we approach what you want. >> However, that would give us different derivations depending on the host >> system type. That is, =E2=80=98guix system build -s mips64el-linux -d= =E2=80=99 on >> x86_64 would return something different from =E2=80=98guix system build = -d=E2=80=99 on >> mips64. This is not desirable. > > Maybe an option would be if %current-system !=3D host-system run guile > using qemu-arm? That would make it a different derivation. >> An option would to have =E2=80=98gexp->file=E2=80=99 produce a fixed-out= put derivation >> (it can compute the hash of the output on the host side). >> >> Or maybe we need another mechanism similar to fixed-output derivations >> to define equivalence classes of derivations. > > I'll have to read up on fixed-output derivations. Can you give me an > example of where they are used currently? For downloads (origins). The manual mentions it briefly. Ludo=E2=80=99.