;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu installer newt menu)
  #:use-module (gnu installer steps)
  #:use-module (gnu installer newt page)
  #:use-module (guix i18n)
  #:use-module (newt)
  #:export (run-menu-page))

(define (run-menu-page steps)
  "Run a menu page, asking the user to select where to resume the install
process from."
  (define (steps->items steps)
    (filter (lambda (step)
              (installer-step-description step))
            steps))

  (run-listbox-selection-page
   #:info-text (G_ "Choose where you want to resume the install.  \
You can also abort the installation by pressing the Abort button.")
   #:title (G_ "Installation menu")
   #:listbox-items (steps->items steps)
   #:listbox-item->text installer-step-description
   #:sort-listbox-items? #f
   #:button-text (G_ "Abort")
   #:button-callback-procedure (lambda ()
                                 (newt-finish)
                                 (primitive-exit 1))))
get' action='/guix/log/gnu/packages/patches/emacs-kv-fix-tests.patch'>
<input type='hidden' name='id' value='f0e048576f6831c30c3d3eba59a10fed06131514'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/guix/log/?id=f0e048576f6831c30c3d3eba59a10fed06131514'>root</a>/<a href='/guix/log/gnu?id=f0e048576f6831c30c3d3eba59a10fed06131514'>gnu</a>/<a href='/guix/log/gnu/packages?id=f0e048576f6831c30c3d3eba59a10fed06131514'>packages</a>/<a href='/guix/log/gnu/packages/patches?id=f0e048576f6831c30c3d3eba59a10fed06131514'>patches</a>/<a href='/guix/log/gnu/packages/patches/emacs-kv-fix-tests.patch?id=f0e048576f6831c30c3d3eba59a10fed06131514'>emacs-kv-fix-tests.patch</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/guix/log/gnu/packages/patches/emacs-kv-fix-tests.patch?id=f0e048576f6831c30c3d3eba59a10fed06131514&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th></tr>
<tr><td><span title='2022-09-14 18:25:12 +0300'>2022-09-14</span></td><td><a href='/guix/commit/gnu/packages/patches/emacs-kv-fix-tests.patch?id=0336372296e676f97799d6a3a1e9cf209f14c6bc'>gnu: emacs-kv: Fix build.</a><span class='msg-avail'>...<span class='msg-tooltip'>Build fails with emacs-next cause of copypasted test defined two times.

* gnu/packages/patches/emacs-kv-fix-tests.patch: New file.
* gnu/packages/emacs-xyz.scm (emacs-kv): Use it here.
* gnu/local.mk (dist_patch_DATA): Register it here.
</span></span></td><td>Andrew Tropin</td></tr>