aboutsummaryrefslogtreecommitdiff
path: root/gnu/installer/newt/utils.scm
blob: dfb113e0c68f0dcdac7460cc2205cce55c6bfd6e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;;; 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 utils)
  #:use-module (ice-9 receive)
  #:use-module (newt)
  #:export (screen-columns
            screen-rows

            destroy-form-and-pop
            set-screen-size!))

;; Number of columns and rows of the terminal.
(define screen-columns (make-parameter 0))
(define screen-rows    (make-parameter 0))

(define (destroy-form-and-pop form)
  "Destroy the given FORM and pop the current window."
  (destroy-form form)
  (pop-window))

(define (set-screen-size!)
  "Set the parameters 'screen-columns' and 'screen-rows' to the number of
columns and rows respectively of the current terminal."
  (receive (columns rows)
      (screen-size)
    (screen-columns columns)
    (screen-rows rows)))
e to 0.10.1....* gnu/packages/python-xyz.scm (python-toml): Update to 0.10.1. Marius Bakke 2020-05-30gnu: python-astroid: Remove unused inputs....* gnu/packages/python-xyz.scm (python-astroid)[propagated-inputs]: Remove PYTHON-TYPED-AST. [native-inputs]: Remove PYTHON-NOSE. Marius Bakke 2020-05-30gnu: python-astroid: Update to 2.4.1....* gnu/packages/python-xyz.scm (python-astroid): Update to 2.4.1. Signed-off-by: Marius Bakke <marius@gnu.org> Michael Rohleder 2020-05-30gnu: fonts.scm: Add missing '>' in copyright header....* gnu/packages/fonts.scm: Add missing > in email address. Marius Bakke 2020-05-30Revert "gnu: python-pylint: Udpate to 2.5.2."...This update broke 'Totem', see <https://bugs.gnu.org/41620>. This reverts commit c2e19b6291cc4981e39d01aae85af0899614061d. Marius Bakke 2020-05-30gnu: rust-xml-rs-0.8: Update to 0.8.3....* gnu/packages/crates-io.scm (rust-mlx-rs-0.8): Update to 0.8.3. Efraim Flashner 2020-05-30gnu: emacs-helm-fish-completion: Update to 0.4....* gnu/packages/emacs-xyz.scm (emacs-helm-fish-completion): Update to 0.4. Pierre Neidhardt 2020-05-30gnu: abseil-cpp: Update to 20200225.2....* gnu/packages/cpp.scm (abseil-cpp): Update to 20200225.2. Tobias Geerinckx-Rice 2020-05-30gnu: cloc: Update to 1.86....* gnu/packages/code.scm (cloc): Update to 1.86. Tobias Geerinckx-Rice 2020-05-30gnu: ccache: Update to 3.7.9....* gnu/packages/ccache.scm (ccache): Update to 3.7.9. Tobias Geerinckx-Rice 2020-05-30gnu: fio: Update to 3.20....* gnu/packages/benchmark.scm (fio): Update to 3.20. Tobias Geerinckx-Rice 2020-05-30gnu: libhx: Update to 3.25....* gnu/packages/c.scm (libhx): Update to 3.25. Tobias Geerinckx-Rice 2020-05-30gnu: lilv: Update to 0.24.8....* gnu/packages/audio.scm (lilv): Update to 0.24.8. Tobias Geerinckx-Rice 2020-05-30gnu: font-tamzen: Update to 1.11.5....* gnu/packages/fonts.scm (font-tamzen): Update to 1.11.5. Tobias Geerinckx-Rice 2020-05-30gnu: electron-cash: Update to 4.0.15....* gnu/packages/finance.scm (electron-cash): Update to 4.0.15. Tobias Geerinckx-Rice 2020-05-30gnu: doctest: Update to 2.3.8....* gnu/packages/check.scm (doctest): Update to 2.3.8. Tobias Geerinckx-Rice 2020-05-30gnu: facter: Update to 4.0.25....* gnu/packages/admin.scm (facter): Update to 4.0.25. Tobias Geerinckx-Rice 2020-05-30gnu: Add font-sarasa-gothic....* gnu/packages/fonts.scm (font-sarasa-gothic): New variable. Signed-off-by: Marius Bakke <marius@gnu.org> Zhu Zihao 2020-05-30gnu: emacsy-minimal: Inputs now use guile version 2.2....* gnu/packages/guile-xyz.scm (emacsy-minimal)[inputs]: Use guile2.2-lib and guile2.2-readline instead of the 3.0 variants. Signed-off-by: Marius Bakke <marius@gnu.org> Mike Rosset 2020-05-30gnu: emacs-elpher: Update to 2.7.8....* gnu/packages/emacs-xyz.scm (emacs-elpher): Update to 2.7.8. Signed-off-by: Marius Bakke <marius@gnu.org> Simon South 2020-05-30gnu: bemenu: Update to 0.4.1....* gnu/packages/xdisorg.scm (bemenu): Update to 0.4.1. Signed-off-by: Marius Bakke <marius@gnu.org> Josh Holland 2020-05-30gnu: python-furl: Update to 2.0.0....* gnu/packages/python-web.scm (python-furl): Update to 2.0.0. [native-inputs]: Remove PYTHON-PYCODESTYLE. Add PYTHON-FLAKE8. Signed-off-by: Marius Bakke <marius@gnu.org> Hamzeh Nasajpour 2020-05-30gnu: python-orderedmultidict: Update to 1.0....* gnu/packages/python-xyz.scm (python-orderedmultidict): Update to 1.0. Signed-off-by: Marius Bakke <marius@gnu.org> Hamzeh Nasajpour 2020-05-30gnu: python-peewee: Update to 3.9.6....* gnu/packages/databases.scm (python-peewee): Update to 3.9.6. Signed-off-by: Marius Bakke <marius@gnu.org> Hamzeh Nasajpour 2020-05-30gnu: Add liferea....* gnu/packages/syndication.scm (liferea): New variable. Signed-off-by: Marius Bakke <marius@gnu.org> Vinicius Monego 2020-05-30gnu: python-prompt-toolkit: Update to 3.0.5....* gnu/packages/machine-learning.scm (python-iml)[propagated-inputs]: Pin implicit python-prompt-toolkit dependency to version 2. * gnu/packages/python-xyz.scm (python-widgetsnbextension)[propagated-inputs]: Pin implicit python-prompt-toolkit dependency to version 2. (python-ipywidgets)[propagated-inputs]: Pin implicit python-prompt-toolkit dependency to version 2. (python-jupyter-console)[propagated-inputs]: Pin explicit python-prompt-toolkit dependency to version 2. (python-prompt-toolkit): Update to version 3.0.5. [propagated-inputs]: Remove PYTHON-SIX and PYTHON-PYGMENTS. [home-page]: Adjust to current. (python-prompt-toolkit-2): New variable. (prompt-toolkit-2-instead-of-prompt-toolkit): New variable. (python2-prompt-toolkit): Keep at version 2. (python-prompt-toolkit-1): Inherit from version 2. Signed-off-by: Marius Bakke <marius@gnu.org> Edouard Klein 2020-05-30gnu: python-iml: Move nose from propagated to native input....* gnu/packages/machine-learning.scm (python-iml)[propagated-inputs]: Move PYTHON-NOSE ... [native-inputs]: ... here. Signed-off-by: Marius Bakke <marius@gnu.org> Edouard Klein 2020-05-30gnu: python-jupyter-console: Update to 6.1.0....* /gnu/packages/python-xyz.scm (python-jupyter-console): Update to 6.1.0. Signed-off-by: Marius Bakke <marius@gnu.org> Edouard Klein 2020-05-30gnu: python-ipywidgets: Update to 7.5.1....* gnu/packages/python-xyz.scm (python-ipywidgets): Update to 7.5.1. Signed-off-by: Marius Bakke <marius@gnu.org> Edouard Klein 2020-05-30gnu: python-widgetsnbextension: Update to 3.5.1....* gnu/packages/python-xyz.scm (python-widgetsnbextension): Update to 3.5.1. Signed-off-by: Marius Bakke <marius@gnu.org> Edouard Klein 2020-05-30gnu: python-pylint: Udpate to 2.5.2....* gnu/packages/check.scm (python-pylint): Update to 2.5.2. [arguments]: New field. (python2-pylint)[arguments]: Do not inherit #:tests?. Signed-off-by: Marius Bakke <marius@gnu.org> Ryan Prior 2020-05-30gnu: flowee: Really disable black-box test....* gnu/packages/finance.scm (flowee)[arguments]: The test 'api' has some timeouts which fail half the time in a build, so really disable the test. Signed-off-by: Marius Bakke <marius@gnu.org> TomZ 2020-05-30gnu: Add spectacle-analyzer....* gnu/packages/music.scm (spectacle-analyzer): new variable. Signed-off-by: Marius Bakke <marius@gnu.org> Alexandros Theodotou 2020-05-30gnu: mpfi: Update home page....* gnu/packages/multiprecision.scm (mpfi): Use more specific home page. Nicolas Goaziou 2020-05-30gnu: mpfi: Update to 1.5.4....* gnu/packages/multiprecision.scm (mpfi): Update to 1.5.4. [source]: Hard-code project name. [arguments]: Disable tests, utterly broken in this release. Do not build static libraries. [native-inputs]: Add automake, autoreconf, libtool, texinfo. Nicolas Goaziou 2020-05-29bootloader: grub: Rename the btrfs-subvolume-file-name parameter....Following discussion in <https://issues.guix.gnu.org/37305>, it seems more appropriate to give the parameter a more generic name that better describes what it does. * gnu/bootloader/grub.scm (normalize-file): Rename the BTRFS-SUBVOLUME-FILE-NAME parameter to STORE-DIRECTORY-PREFIX, and always assume this argument to be a string. (eye-candy): Likewise. Default STORE-DIRECTORY-PREFIX to "". (grub-configuration-file): Likewise. * gnu/system.scm (operating-system-bootcfg): Adapt. Maxim Cournoyer 2020-05-29services: nfs: Expose configuration options for TCP and UDP....* gnu/services/nfs.scm (<nfs-configuration>)[nfsd-tcp?, nfsd-udp?]: New fields. (nfs-shepherd-services)[rpc.nfsd]: Populate the --{no-,}tcp and --{no-,}udp command line options based on the values of the nfsd-tcp? and nfsd-upd? fields. * doc/guix.texi (Network File System): Add doc. Maxim Cournoyer 2020-05-29gnu: xaos: Update to 4.0....* gnu/packages/maths.scm (xaos): Update to 4.0. [source]: Use git-fetch. [native-inputs]: Add qtbase and qttools. [arguments]: Remove #:make-flags options; replace 'configure' phase; add 'make-qt-deterministic' and 'install-data' phases. [home-page]: Update URL. Kei Kebreau 2020-05-30gnu: glade3: Update to 3.36.0....* gnu/packages/gnome.scm (glade3): Update to 3.36.0. Arun Isaac 2020-05-29gnu: mpg123: Update to 1.26.0....* gnu/packages/mp3.scm (mpg123): Update to 1.26.0. [inputs]: Re-order alphabetically. Nicolas Goaziou