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 ms9.migadu.com with LMTPS id UK9aN1tTTmTDrwAASxT56A (envelope-from ) for ; Sun, 30 Apr 2023 13:39:08 +0200 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 aNVZNltTTmR92QAAG6o9tA (envelope-from ) for ; Sun, 30 Apr 2023 13:39:07 +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 A4F1928060 for ; Sun, 30 Apr 2023 13:39:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pt4h0-0002v4-00; Sun, 30 Apr 2023 06:54:10 -0400 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 1pt4gu-0002t5-CL for guix-patches@gnu.org; Sun, 30 Apr 2023 06:54:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pt4gu-0002UC-2n for guix-patches@gnu.org; Sun, 30 Apr 2023 06:54:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pt4gt-0000Vo-Vb for guix-patches@gnu.org; Sun, 30 Apr 2023 06:54:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61915] [PATCH v2 04/13] gnu: agda: Build info manual. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Apr 2023 10:54:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61915 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Josselin Poiret , Simon Tournier , 61915@debbugs.gnu.org Received: via spool by 61915-submit@debbugs.gnu.org id=B61915.16828520341861 (code B ref 61915); Sun, 30 Apr 2023 10:54:03 +0000 Received: (at 61915) by debbugs.gnu.org; 30 Apr 2023 10:53:54 +0000 Received: from localhost ([127.0.0.1]:37348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pt4gj-0000Tr-TN for submit@debbugs.gnu.org; Sun, 30 Apr 2023 06:53:54 -0400 Received: from jpoiret.xyz ([206.189.101.64]:52966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pt4gO-0000S8-0Z for 61915@debbugs.gnu.org; Sun, 30 Apr 2023 06:53:34 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id A9DB418531A; Sun, 30 Apr 2023 10:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1682852011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b6rZv4Koqc0Btpsmqle9BgZEKGnkEFmjkvlND1/ONwM=; b=AhmLBrwkcbA0pnv3Nn7/GqerIqe3O1deu/PjXUbNImrxvU4OJ/5dS22pSRCU0FDN+gX+DZ saXdwh+YkaybsgUHJl8LTs6g7MQOtZSY1Khs8hTBbgmTTf8zTFBO6GkLBFuoeS+XWyi7Oi r2KVv+RYCt38ER2gsVI+eFH5XaJXedm9OjowxJR2txAM7Z0RJIYo/cN05y/0W1OCN3uD3s tLUURgzCn8k9MlKLjdoamUvLoO5DgoMSiXI56TapeMJ6haxad3AcVykji8Eh936p9wDYvb /vBN7MB+L9+QhPgBzaz8rN4gJT2NhSPXCM17aTOuEKEFR6yrxipJSCf6wqEHFg== Date: Sun, 30 Apr 2023 12:53:14 +0200 Message-Id: <8ae7a9d4c6b42c227f602dd302dda1f3c7f97361.1682851600.git.dev@jpoiret.xyz> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682854747; a=rsa-sha256; cv=none; b=oHmKmSp1kYq1UOOC3NNnYXY6tUMfkWrAb0XapxJMbgrWxpLQRq+QZzKpVAdyQksqpsRrCo C4lqxC7BhatLbxOUR+pyvry8sU0QvlvOiBvGEgNjGnOKNlxJ+LApbPsQdp0IMG0cxwcMrx Ht8AT/Yu7w04oegFnJq+f1PqPYFidw5sfEGdbW79hipeJ+C2tbKdaxGsLhOMxDvBKY1IZq F6lXo1Ck4b5vZHpPxbWmAqTEun7jQWEdDhJ9aMb84nxZfvdXRDedW6mYtJ9ggwoBUNhhtl 3kB+zIS7B71vxRJwUCXXqlNUR0IpO7/GFw1H7tpRT/XhC/CLwrX2nlJe0Ff/2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=AhmLBrwk; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682854747; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=b6rZv4Koqc0Btpsmqle9BgZEKGnkEFmjkvlND1/ONwM=; b=qbuA12Kyj2bZkV0uCWMYs0HvIfO1t22svxvIFiN37hRQN5w3J2J1y99EwwjvqPiYCPKr7D BDqA1WPQbg3KpS/1rfAnKf8DGib32HkqmI9gKsLUQHwbosB7pwFDdaaFQqrNzYOpSdclFE q2dWqYlayQObxCzv2Ba7a2Ft+ZUAnpFOSXh7hHDJubdavIfXqLauTGIsok1My37CJgx6P5 1n9rylWvo0z8QykyakYhklupWe6zUqzWZDcXl7YyXEnwazMyjncsBver/GMxxqOl7h8a4L Yj9IGBiRwVLokHkSiTEPxZIakg6g0qTPRaa41F6aWg1Knbf2SQdtgzs96iZpJg== X-Migadu-Spam-Score: 0.59 X-Spam-Score: 0.59 X-Migadu-Queue-Id: A4F1928060 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=AhmLBrwk; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: wUllqhFZ590q From: Josselin Poiret * gnu/packages/agda.scm (agda): Build the user manual as an info manual. --- gnu/packages/agda.scm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/gnu/packages/agda.scm b/gnu/packages/agda.scm index 252193de90..eba48da0ff 100644 --- a/gnu/packages/agda.scm +++ b/gnu/packages/agda.scm @@ -25,6 +25,10 @@ (define-module (gnu packages agda) #:use-module (gnu packages haskell-check) #:use-module (gnu packages haskell-web) #:use-module (gnu packages haskell-xyz) + #:use-module (gnu packages imagemagick) + #:use-module (gnu packages python) + #:use-module (gnu packages sphinx) + #:use-module (gnu packages texinfo) #:use-module (guix build-system emacs) #:use-module (guix build-system gnu) #:use-module (guix build-system haskell) @@ -72,6 +76,12 @@ (define-public agda ghc-uri-encode ghc-vector-hashtables ghc-zlib)) + (native-inputs + (list python + python-sphinx + python-sphinx-rtd-theme + texinfo + imagemagick)) (arguments (list #:modules `((guix build haskell-build-system) (guix build utils) @@ -88,7 +98,16 @@ (define-public agda (let ((agda-compiler (string-append #$output "/bin/agda"))) (for-each (cut invoke agda-compiler <>) (find-files (string-append #$output "/share") - "\\.agda$")))))))) + "\\.agda$"))))) + (add-after 'agda-compile 'install-info + (lambda _ + (with-directory-excursion "doc/user-manual" + (invoke "sphinx-build" "-b" "texinfo" + "." "_build_texinfo") + (with-directory-excursion "_build_texinfo" + (setenv "infodir" (string-append #$output + "/share/info")) + (invoke "make" "install-info")))))))) (home-page "https://wiki.portal.chalmers.se/agda/") (synopsis "Dependently typed functional programming language and proof assistant") -- 2.39.2