From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id xo6ONU6vAGRXEwAAbAwnHQ (envelope-from ) for ; Thu, 02 Mar 2023 15:14:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yI4GNE6vAGTcewEAG6o9tA (envelope-from ) for ; Thu, 02 Mar 2023 15:14:38 +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 A2599171B9 for ; Thu, 2 Mar 2023 15:14:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXjh7-00017G-Q9; Thu, 02 Mar 2023 09:14:05 -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 1pXjh5-00015x-RC for guix-patches@gnu.org; Thu, 02 Mar 2023 09:14:03 -0500 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 1pXjh5-0000pX-Is for guix-patches@gnu.org; Thu, 02 Mar 2023 09:14:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXjh5-0005eV-FG for guix-patches@gnu.org; Thu, 02 Mar 2023 09:14:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61915] [PATCH 4/4] gnu: agda: Build info manual Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 02 Mar 2023 14:14: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 , 61915@debbugs.gnu.org Received: via spool by 61915-submit@debbugs.gnu.org id=B61915.167776643121677 (code B ref 61915); Thu, 02 Mar 2023 14:14:03 +0000 Received: (at 61915) by debbugs.gnu.org; 2 Mar 2023 14:13:51 +0000 Received: from localhost ([127.0.0.1]:56230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXjgt-0005dZ-As for submit@debbugs.gnu.org; Thu, 02 Mar 2023 09:13:51 -0500 Received: from jpoiret.xyz ([206.189.101.64]:54938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXjgr-0005dE-8d for 61915@debbugs.gnu.org; Thu, 02 Mar 2023 09:13:49 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 3AEE8185320; Thu, 2 Mar 2023 14:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1677766428; 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=v3h10WzqwYTpiBL1c8ZaRcOoNOZcepwpSeEDMR3AktU=; b=BRtfLyuc90rF3fNzmCmSx7r4YrYBEcs1q62bAT81j5eJ4s74ZbtpJCdOwEwdsfMTscba62 KU21CaCeo7enWWSYCzM3NgmwD65cu1uWOJnfT12VLBPUWsd2Rnj14PaF/XdttBArKxvSSq 1uJMCLgeZOOqdFEjXW2P3b2y0OlXiaSttTNvIQ1juAZ4QWrzT6B0Ewqo2bNezoEPtOGtg1 31r+vyIJQJT3w2O0TT8q03rN5yGSKVkCtfG/JdmIWMVkTJd8lNylpsSXCyw6q296DGS0Sj UXxdtsrX5SyrhZTRbdRT/q0+ZblllphX27CMCKLKxLhiGeSsQjnedbRNxdd9BQ== Date: Thu, 2 Mar 2023 15:13:36 +0100 Message-Id: <81be0b60a3c43f9e5a20c662734b8eba2d6f457c.1677685282.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=1677766478; a=rsa-sha256; cv=none; b=cr07VWQJiVdgUsGNR3jOfLbMn6WgIUKg36rwkQlTEoNs/mZfJ7cHqDiDEGZyO0vn5IIjBU wEw4iw9O9ds/uWuI1tTarPKJaNQv0QrL4sMO/2GNM+UxEjRUsXUcG9GqHiVupKt/9mo45g g/KVIlZkWb1Ww7Lx93r/W/9zyhfFVzlnGLAE3PJ9qsWrImyU988N1wNEhHyQ1gO95wsny5 BE/ZV+BwOvMagfeYjIOpTVdb9ApRObYqJOUozbdp3K7vJV9e/5e00v4halH+3265UW8x5c XIasFeREUpbd8o/4iv2Fjnpg7dr6Gu9qrQ7jVVnKboYE+rCvXZE3HaxzDiBxKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=BRtfLyuc; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677766478; 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=v3h10WzqwYTpiBL1c8ZaRcOoNOZcepwpSeEDMR3AktU=; b=UG0ocCDvXkqN421wLpthsR9wgkEDoo6otWr4aJOVqCvIrY3xXQCuVm5hWzK1jEiPsp0zxA dpYG+f+bTw/uEjNbCM7d8lO6t7bCenZwQBSgQ/EL5nZZyPzBknZsOPgnFoDZwFFkpgRyCX 7U1voJJ3yteMfwJ5aFmR0aG4StdD/vjC551a21AB+1jz7yk7sdr2aUV7TVB5O5JiTFkWAt Y1O9TEuo/IVuRVEvynnWwFJfKuh1ZOBWORR9J0GTJ0pHNjEkJq3dtS4QVmuwkwWZ+tpSOi OzP+6QtSNGq35JIZlKqxToXbY0ivXkPs1NN1X5XoUHRAWWua5UjhoR7MvOKw/A== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.19 X-Spam-Score: -2.19 X-Migadu-Queue-Id: A2599171B9 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=BRtfLyuc; 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"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: tCcf1qV7xKgp * 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 1595f2cd22..4a157d5c39 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 texinfo) + #:use-module (gnu packages sphinx) #:use-module (guix build-system emacs) #:use-module (guix build-system gnu) #:use-module (guix build-system haskell) @@ -73,6 +77,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) @@ -89,7 +99,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.1