From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id D4fzJdFop2NfNwEAbAwnHQ (envelope-from ) for ; Sat, 24 Dec 2022 22:02:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GKZZJNFop2MTkQAAG6o9tA (envelope-from ) for ; Sat, 24 Dec 2022 22:02:09 +0100 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 65B0826BF6 for ; Sat, 24 Dec 2022 22:02:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9BeE-00074L-Gp; Sat, 24 Dec 2022 16:01:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9Adv-0006gR-A2 for help-guix@gnu.org; Sat, 24 Dec 2022 14:57:15 -0500 Received: from simopolis.xyz ([202.61.230.221] helo=mail.simopolis.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9Adt-0003bq-Le for help-guix@gnu.org; Sat, 24 Dec 2022 14:57:15 -0500 From: Russell Sim DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=simopolis.xyz; s=dkim; t=1671911830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6o+nqWo1HSiBkbAINWztvZigvWz478M+nYL0I0/mFaE=; b=PqYk8qRPjXkhHe4pfbeOpUYRE9s2sOSt2ckzLWF1E6fdsWm0WBLKxNPreqxE48Os7jrqyT N7aVrQMqinvozilQ05TH/8f71LPjHtvaBubSH0aZRAEJIxsoPTMTyUsQi/A1myqZK3WeGE eXHj2MCOvQ9oloQsBSm8FEwLLJ4nkTtL0CzawrtkpMpx6GSGJiqn/i1MGRV0aYvGMCO+ZE cvh6KGjJC3ikd2y91R/LgiRavWr+xnWRA8KQcXWLVPoOO5fHpN918D+lXvhenXSuTNzXc2 Or7YNqOEhX21i/n8pcy1AQswKB4ivB7aAIDZIT1GQ/PXOVYRtWaMRv6znJx+Uw== To: "Kefir ." , help-guix@gnu.org Subject: Re: Common Lisp cli package example In-Reply-To: References: Date: Sat, 24 Dec 2022 20:57:01 +0100 Message-ID: <87cz881soi.fsf@simopolis.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: / Received-SPF: pass client-ip=202.61.230.221; envelope-from=rsl@simopolis.xyz; helo=mail.simopolis.xyz 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, FROM_SUSPICIOUS_NTLD=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_PDS_OTHER_BAD_TLD=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 24 Dec 2022 16:01:36 -0500 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671915728; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6o+nqWo1HSiBkbAINWztvZigvWz478M+nYL0I0/mFaE=; b=HiR1QJiihmzicDGg7Vl7voHu4HcQOvtoTuLxpibRiqtuFkZaUIcv6fqKmEmEY96ZuPJfY1 gfmStAQOHikSuiy1dmaEBjqDRiux8MOTcraj3kfd+3mk8AbxAVq/AQjkaHetAoEueM4XL8 LmTi+vrDHzshJ1APpuG83xnZ3chZEQVHzOqh6rC48j5QcoEjO21Xxg3sDoI8xLyPEoQ9DV LzKcXjBG9yh7McYaX6OS9CJ+uL9ZS/m78ge/Kvo1wih7cm5EwbwAumeuIaDPMymfscaVEA 4eYox+1y3AzHcACQVxDQXMJaXhkuAG12H6i2nXFGDiVC+QNHNYku2soBc6SKIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=simopolis.xyz header.s=dkim header.b=PqYk8qRP; 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"; dmarc=pass (policy=quarantine) header.from=simopolis.xyz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671915728; a=rsa-sha256; cv=none; b=ThuMpGLK+HWfcHER8e14iUFzjZ1oGsnHYGzTW06aLn3ptT5SfZToJuBJ4EG4QrTJ08t84u cmsvU2nfP+i04aAa2yNJ4aNXK0J37if9FjKBYPiPHCQ5V6CwWzgU2Nn90PGIR/bT6k0tp3 T3qdjuawbL2wtoo51lzh0XKSNdCQmtKVIiTORX6HCjELhdZiBDnaqSBboQKnW+wC62ORF/ uoW3SiYTNIVL87IfsiVdSOhwRxXzsXcnNC5S/2AEcZGyP9Wws2+eNa8PhIbFZLN2tctfCZ e8xyG3ZNV/wailvOPJnLSjh6g4yY049QtbD7mp/cUQep5XMFumXl4WS7Mn/rKw== X-Spam-Score: -4.01 X-Migadu-Queue-Id: 65B0826BF6 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=simopolis.xyz header.s=dkim header.b=PqYk8qRP; 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"; dmarc=pass (policy=quarantine) header.from=simopolis.xyz X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.01 X-TUID: eSt4LtFAxBPY Hey, "Kefir ." writes: > Hi guix! Is there an example of common lisp command line utility > packaged using guix? I am only new to Guix, the most straight forward I found was to use the `build-program' phase. I followed StumpWM as an example[1]. --8<---------------cut here---------------start------------->8--- (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'create-asdf-configuration 'build-program (lambda* (#:key outputs #:allow-other-keys) (build-program (string-append (assoc-ref outputs "out") "/bin/stumpwm") outputs #:entry-program '((stumpwm:stumpwm) 0))))))) --8<---------------cut here---------------end--------------->8--- This works to my understanding by inserting a `bulid-program' step after the other build phases. It generates a separate asd file and evaluating it with the `program-op' build operation is ASDF. There is no easy way I could see to use an existing `asdf:make' presumably this is because redirecting the output file is not possible. The `build-program' method is declared in guix/build/lisp-utils.scm[2] it also takes a `compress?' keyword argument if you need it, the rest of the flags are pretty much automated. 1. https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/wm.scm#n1908 2. https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/lisp-utils.scm#n225 Cheers, Russell