From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WMz7L2xaAWMsewAAbAwnHQ (envelope-from ) for ; Sun, 21 Aug 2022 00:04:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MArXL2xaAWOXKgEAauVa8A (envelope-from ) for ; Sun, 21 Aug 2022 00:04:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2A4A3121C5 for ; Sun, 21 Aug 2022 00:04:28 +0200 (CEST) Received: from localhost ([::1]:34952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPWZv-0000WC-8J for larch@yhetil.org; Sat, 20 Aug 2022 18:04:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPWZh-0000W0-U6 for help-guix@gnu.org; Sat, 20 Aug 2022 18:04:14 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPWZf-0004WP-Nu for help-guix@gnu.org; Sat, 20 Aug 2022 18:04:13 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1661033047; cv=none; d=zohomail.com; s=zohoarc; b=ErSKSALG388BrplktbE5QhNxNuAb7vDtLTgkrQL/ZEpHdn17D3zFOV2mOGKe8UHz1La6ZEVribzImVkkDvsaImamCuNq+6UXD9n883upR680fJvxQYdnVNRH5U+LxaZ8ONkFW+onlRvOyT2cOpv9VO3qKOLp0qclIT1IrBrqwsM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661033047; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=ZiK43M8LaCCyqFmgRYbbR6jyBSVLnke/sp7J3hYm34c=; b=ZonLPFw0FznLMePGEUsQyRm//5Um+cqByoT/Z083ylkNEY1qZQZfcvEvNKfnPQaDSH2LCtEw9QBjyGzHB6FX/TZ4JZebfpBaJhR2Y7s9YttUgpD/BMRGRXHEyLuv9vK0OpsFYKMmZbNpVySGjrE1hI0ETGEChn8+bJ/VcbEHUb0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=a-rx.info; spf=pass smtp.mailfrom=rx@a-rx.info; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1661033047; s=zoho; d=a-rx.info; i=rx@a-rx.info; h=From:From:To:To:Subject:Subject:References:Date:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=ZiK43M8LaCCyqFmgRYbbR6jyBSVLnke/sp7J3hYm34c=; b=Ty8NN6ehLFJeChGFLNSSIAgsahkW/Bo5z9oXMzCnauwb58nCAN2qsD2C5hEDSFXD wsRsj5burAbL5j8fDnNDuxC401ncqC+gJ120oPbUpzuzxN3MaNfUOatinNwbSjlkpnT SMbAAn9j+hcdPdFnhzPj0ORX0h0DAwquqiiGEeSs= Received: from softland (148.252.128.1 [148.252.128.1]) by mx.zohomail.com with SMTPS id 1661033043389572.9329031048445; Sat, 20 Aug 2022 15:04:03 -0700 (PDT) Received: from rx by softland with local (Exim 4.96) (envelope-from ) id 1oPWZl-00CYNN-2r for help-guix@gnu.org; Sat, 20 Aug 2022 23:04:17 +0100 From: Andreas Reuleaux To: help-guix Subject: Re: Packaging Idris2 References: <138fc06ac78045c4a7117566484ebb936caff178.camel@phfrohring.com> <87r11aeot8.fsf@riseup.net> Date: Sat, 20 Aug 2022 23:01:58 +0100 In-Reply-To: <87r11aeot8.fsf@riseup.net> (Csepp's message of "Sat, 20 Aug 2022 20:42:38 +0200") Message-ID: <871qta8tgp.fsf@softland> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rx@a-rx.info; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661033068; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZiK43M8LaCCyqFmgRYbbR6jyBSVLnke/sp7J3hYm34c=; b=Ozv0Qh7wY1b7uW3AIeTzkl0dlsKJ/4xfvZNcl2m8TxDFV1LqkGSmHSiR7XHppzCwrFnOmX +AYoAcUqPZqv/cz5tG9BOnGeyzBJvVQ1apmDWf0/F6b9Q+88ihNB4Bo6NoV8E9vZyg50Jq uFXf3eiUKwD307FwHBC7bYVlL6Kk7ZGG4nodV0+BB46zTu1Ep43a44YG/sEGUYpZXvfus2 R/ETDDuM8eL2a6nnrV9sYgZd9/eM47UEYhzpiqklB9GB1duXdQ0Cpxu0VKkikQQSs6cO4B kX0YprMS4zh8FtHdk3r+gXmktfrvmIJviyMVZLGO3yAVq9X0Dn3dJ0ZRE5vyyQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1661033068; a=rsa-sha256; cv=pass; b=dKEzvnPLwTmjDXEPnqec88aDUx1DngpmHKu7sYuekYQrYBrBG4tUXhWxA8f5kkbPkBXpg1 OVZpHcRvCNI/BSJjcbD60H+J8+n2qYlFAWtk31nvU1S/jlo5OoU1W/DiviyGYc1KIYdTOb rtqED0BySmOOu96DLmZdRU9eSbuVANbjvxuQPQMzPeJvl+AC8I+xdDimGHX37lBp1yma1y 1dzjbM646PjFVgMfTKDIKJYdhZXqs+L0kgGcUPlbLdTOlnmfBNxPMm4wxy2wYNtFIAyPBg o4T0ONnw9D/E2ePKlJRN7+7QBfoMQ1Krr/z1FW7XRMLrxs8NK5/iHlX4qpuw1g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=a-rx.info header.s=zoho header.b=Ty8NN6eh; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=a-rx.info header.s=zoho header.b=Ty8NN6eh; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2A4A3121C5 X-Spam-Score: -2.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: aCOuW7CIOs7L Csepp writes: > Pierre-Henry Fröhring writes: > >> Well, I went from a `guix shell --container' up to `make test' passing ; >> assuming a `chez-scheme' backend (no `node' nor `racket'). It boils down >> to a shell session looking like: >> >> ┌──── >> │ $ cd ~/src/ >> │ $ git clone git@github.com:idris-lang/Idris2.git >> │ $ cd Idris2 >> │ $ ./build_idris >> └──── >> Listing 1: session >> >> I guess that an idea would be to « translate » this session into a Guix >> Package. What's the best option here? To torture the `gnu-build-system' >> until it accepts to build Idris2 or should I take the >> `trivial-build-system' route? >> Thank you. >> ― PHF >> >> ┌──── >> │ #! /usr/bin/env bash >> │ set -euo pipefail >> │ IFS=$'\n\t' >> │ >> │ cat <<'EOF' >manifest.scm >> │ (specifications->manifest >> │ '("gcc@12.1.0" >> │ "chez-scheme" >> │ "gmp" >> │ "coreutils" >> │ "bash" >> │ "make" >> │ "findutils" >> │ "git" >> │ "diffutils" >> │ "glibc" >> │ "sed" >> │ "gawk" >> │ "binutils")) >> │ EOF >> │ >> │ cat <<'EOF' >build_idris_in_container >> │ set -euo pipefail >> │ IFS=$'\n\t' >> │ >> │ echo 'Idris build configuration' >> │ set -x >> │ export PREFIX=/tmp/idris2 >> │ export SCHEME=chez-scheme >> │ export CC=gcc >> │ export INTERACTIVE='' >> │ set +x >> │ echo >> │ >> │ echo 'PATHS configuration' >> │ set -x >> │ export LD_LIBRARY_PATH=$GUIX_ENVIRONMENT/lib:$PREFIX/lib >> │ export PATH=$PATH:$PREFIX/bin >> │ set +x >> │ echo >> │ >> │ echo 'Bootstrap' >> │ make bootstrap >> │ echo >> │ >> │ echo 'Install' >> │ make install >> │ echo >> │ >> │ echo 'Self-host' >> │ make clean >> │ make all >> │ make install >> │ echo >> │ >> │ echo 'Test' >> │ make test >> │ echo >> │ >> │ echo 'Clean' >> │ rm -v manifest.scm >> │ rm -v build_idris_in_container >> │ echo >> │ EOF >> │ >> │ guix shell -C -m manifest.scm -- bash ./build_idris_in_container >> └──── >> Listing 2: build_idris > > I'm pretty sure Lendvai Attila has a WIP package that was supposed to be > submitted as a patch "soon", which was like a year ago. > > Anyways, there are definitely already Idris 2 patches floating around > the mailing list so I'd prefer if discussion was moved there. > I'm also interested in getting it packaged, but building it takes a lot > of time. Sorry for intercepting: It does *NOT* take that much time: Just following the INSTALL instruction as in the package idris2-0.5.1.tgz (unpacked as Idris2-0.5.1 ) takes me 8 min + 25 sec roughly (bootstrapping with racket in my case / chez scheme would do as well) time make bootstrap-racket real 8m20.490s user 8m13.197s sys 0m6.841s time make install real 0m4.796s user 0m4.267s sys 0m0.532s > The Scheme bootstrap seed can be generated with Idris 1, true. But > compiling Idris 2 with Idris 1 takes such an ungodly amount of time and > RAM that expecting people to do so is maybe not a great idea. I > certainly will not be working on that. Last time I built it I needed at > least 16 gigs of swap. I have better use cases for my SSD. Sorry this is wrong: Idris2 is *NOT* built from Idris1 any more: You either build from an existing Idris2 (that means you had it successfully built/installed at least once - and are by now experienced enough, to know what's going on in your build chain), or - probably more relevant for the packaging here: You bootstrap it from scheme (chez or racket), as comes within the Idris2 tarball (and built with Idris 2 itself: Idris2 -> Chez Scheme / Racket). I am not that super familiar with Guix packaging (well have done some little bits before), but at least I got Idris 2 installed and running (well I guess you have, too [?]). But I may be able to step in with more detailed installation steps, if needed. Thanks, -A