jackhill/guix/guix.git
2 years agognu: Remove unused patch.
Efraim Flashner [Tue, 7 Jun 2022 16:11:48 +0000 (19:11 +0300)]
gnu: Remove unused patch.

* gnu/packages/patches/python-flake8-polyfill-flake8-4-compat.patch:
Remove file.
* gnu/local.mk (dist_patch_DATA): Remove it.

2 years agognu: python-debian: Set version to build reproducibly.
Vagrant Cascadian [Tue, 7 Jun 2022 02:54:34 +0000 (19:54 -0700)]
gnu: python-debian: Set version to build reproducibly.

* gnu/packages/python-xyz.scm (python-debian)[arguments]: Add 'set-version
  phase.

2 years agognu: offlate: Fix build.
Maxim Cournoyer [Tue, 7 Jun 2022 02:33:20 +0000 (22:33 -0400)]
gnu: offlate: Fix build.

* gnu/packages/python-xyz.scm (offlate)
[phases]{patch-for-pygit2}: New phase.

2 years agognu: python-pygit2: Update to 1.9.2 and enable tests.
Maxim Cournoyer [Tue, 7 Jun 2022 01:43:58 +0000 (21:43 -0400)]
gnu: python-pygit2: Update to 1.9.2 and enable tests.

* gnu/packages/python-xyz.scm (python-pygit2): Update to 1.9.2.
[tests?]: Delete argument.
[phases]{check}: New phase override.
[description]: Fix sentence.

2 years agognu: python-pygmsh: Update to 7.1.17.
Maxim Cournoyer [Tue, 7 Jun 2022 01:32:30 +0000 (21:32 -0400)]
gnu: python-pygmsh: Update to 7.1.17.

* gnu/packages/simulation.scm (python-pygmsh): Update to 7.1.17.
[source]: Remove snippet and modules fields.
[origin]: Prefix tag by "v".
[phases]: Delete trailing #t.
{workaround-gmsh-detection-failure}: New phase.
{build, install}: New phase overrides.
{check}: Honor tests and remove extraneous add-installed-pythonpath call.
[native-inputs]: Remove wheel.  Add python-pypa-build and python-flit-core.
[propagated-inputs]: Remove python-importlib-metadata.

2 years agognu: python-xunitparser: Update to 1.3.4.
Maxim Cournoyer [Mon, 6 Jun 2022 21:36:10 +0000 (17:36 -0400)]
gnu: python-xunitparser: Update to 1.3.4.

* gnu/packages/python-check.scm (python-xunitparser): Update to 1.3.4.

2 years agognu: nikola: Update to 8.2.2.
Maxim Cournoyer [Mon, 6 Jun 2022 21:22:21 +0000 (17:22 -0400)]
gnu: nikola: Update to 8.2.2.

* gnu/packages/python-xyz.scm (nikola): Update to 8.2.2.

2 years agognu: electron-cash: Apply new style to inputs and use gexps.
Maxim Cournoyer [Mon, 6 Jun 2022 20:21:47 +0000 (16:21 -0400)]
gnu: electron-cash: Apply new style to inputs and use gexps.

* gnu/packages/finance.scm (electron-cash)[phases]: Use gexps.
[inputs]: Use new style.

2 years agognu: electron-cash: Update to 4.2.10.
Maxim Cournoyer [Mon, 6 Jun 2022 20:29:55 +0000 (16:29 -0400)]
gnu: electron-cash: Update to 4.2.10.

* gnu/packages/finance.scm (electron-cash): Update to 4.2.10.

2 years agognu: trezor-agent: Update to 0.14.4.
Maxim Cournoyer [Mon, 6 Jun 2022 21:17:38 +0000 (17:17 -0400)]
gnu: trezor-agent: Update to 0.14.4.

* gnu/packages/finance.scm (trezor-agent): Update to 0.14.4.
[phases]{relax-requirements}: New phase.

2 years agognu: python-trezor: Add python-hidapi optional dependency.
Maxim Cournoyer [Mon, 6 Jun 2022 21:08:02 +0000 (17:08 -0400)]
gnu: python-trezor: Add python-hidapi optional dependency.

* gnu/packages/finance.scm (python-trezor)
[propagated-inputs]: Add python-hidapi.

2 years agognu: python-trezor-agent: Delete trailing #t and honor TESTS?.
Maxim Cournoyer [Mon, 6 Jun 2022 21:03:44 +0000 (17:03 -0400)]
gnu: python-trezor-agent: Delete trailing #t and honor TESTS?.

* gnu/packages/finance.scm (python-trezor-agent)
[phases]: Delete trailing #t.
{check}: Honor TESTS?.  Delete extraneous add-installed-pythonpath call.

2 years agognu: python-trezor: Update to 0.13.0.
Maxim Cournoyer [Mon, 6 Jun 2022 20:56:42 +0000 (16:56 -0400)]
gnu: python-trezor: Update to 0.13.0.

* gnu/packages/finance.scm (python-trezor): Update to 0.13.0.
[source]: Delete broken symbolic links in snippet.
[propagated-inputs]: Use python-click-7.
[native-inputs]: Re-order.

2 years agognu: python-flask-restx: Skip networking dependent test.
Maxim Cournoyer [Mon, 6 Jun 2022 20:11:50 +0000 (16:11 -0400)]
gnu: python-flask-restx: Skip networking dependent test.

* gnu/packages/python-web.scm (python-flask-restx)
[phases]{check}: Skip the 'test_redirect' test.

2 years agognu: python-flask-combo-jsonapi: Skip failing test.
Maxim Cournoyer [Mon, 6 Jun 2022 20:06:30 +0000 (16:06 -0400)]
gnu: python-flask-combo-jsonapi: Skip failing test.

* gnu/packages/python-web.scm (python-flask-combo-jsonapi)
[phases]{check}: Skip
test_get_list_with_simple_filter_relationship_custom_qs_api test.
[native-inputs]: Normalize indentation.

2 years agognu: xenon: Update to 0.9.0, rename and relocate.
Maxim Cournoyer [Mon, 6 Jun 2022 19:49:46 +0000 (15:49 -0400)]
gnu: xenon: Update to 0.9.0, rename and relocate.

* gnu/packages/python-xyz.scm (python-xenon): Rename to...
* gnu/packages/code.scm (xenon): ... this.  Update to 0.9.0.
[native-inputs]: Delete field.
[inputs]: New field.
[phases]: Delete argument.
(python-xenon): Mark as deprecated.

2 years agognu: python-flake8: Update to 4.0.1.
Maxim Cournoyer [Mon, 6 Jun 2022 18:12:04 +0000 (14:12 -0400)]
gnu: python-flake8: Update to 4.0.1.

* gnu/packages/python-xyz.scm (python-flake8): Update to 4.0.1.
[phases]{check}: Delete extraneous add-installed-pythonpath call.
[propagated-inputs]: Re-indent.
[native-inputs]: Remove python-mock.

2 years agognu: Remove python-flake8-polyfill.
Maxim Cournoyer [Mon, 6 Jun 2022 18:28:57 +0000 (14:28 -0400)]
gnu: Remove python-flake8-polyfill.

This package is mostly useful for Flake8 version 2 or 3 (see:
https://github.com/PyCQA/flake8-polyfill/pull/14#issuecomment-979161161).

* gnu/packages/python-xyz.scm (python-flake8-polyfill): Delete variable.

2 years agognu: python-pep8-naming: Update to 0.13.0.
Maxim Cournoyer [Mon, 6 Jun 2022 18:28:36 +0000 (14:28 -0400)]
gnu: python-pep8-naming: Update to 0.13.0.

* gnu/packages/python-xyz.scm (python-pep8-naming): Update to 0.13.0.
[propagated-inputs]: Remove python-flake8-polyfill.

2 years agognu: python-radon: Update to 5.1.0.
Maxim Cournoyer [Mon, 6 Jun 2022 18:25:59 +0000 (14:25 -0400)]
gnu: python-radon: Update to 5.1.0.

* gnu/packages/python-xyz.scm (python-radon): Update to 5.1.0.
[propagated-inputs]: Remove python-flake8-polyfill.

2 years agognu: install: Add uvesafb service only on targets that support v86d.
Josselin Poiret [Mon, 6 Jun 2022 14:16:34 +0000 (16:16 +0200)]
gnu: install: Add uvesafb service only on targets that support v86d.

Fixes <https://issues.guix.gnu.org/55806>.

* gnu/system/install.scm (%installation-services): Refactor into a
procedure, so that it can capture the system it's installing for.
Conditionally add uvesafb-service-type based on whether v86d is
supported by the target architecture.
(installation-os)[services]: Use the %installation-service procedure.
(uvesafb-shepherd-service): Remove %host-type checks.

Signed-off-by: Florian Pelz <pelzflorian@pelzflorian.de>
2 years agognu: python-flake8-polyfill: Update home-page.
Efraim Flashner [Tue, 7 Jun 2022 06:25:33 +0000 (09:25 +0300)]
gnu: python-flake8-polyfill: Update home-page.

* gnu/packages/python-xyz.scm (python-flake8-polyfill)[home-page]: Update
to new upstream URI.

2 years agognu: python-flake8-polyfill: Honor tests? flag.
Efraim Flashner [Tue, 7 Jun 2022 06:24:14 +0000 (09:24 +0300)]
gnu: python-flake8-polyfill: Honor tests? flag.

* gnu/packages/python-xyz.scm (python-flake8-polyfill)[arguments]:
Adjust custom 'check phase to honor the #:tests? flag.

2 years agognu: python-flake8-polyfill: Fix building with python-flake8@4.
Efraim Flashner [Tue, 7 Jun 2022 06:22:35 +0000 (09:22 +0300)]
gnu: python-flake8-polyfill: Fix building with python-flake8@4.

* gnu/packages/python-xyz.scm (python-flake8-polyfill)[source]: Add patch.
* gnu/packages/patches/python-flake8-polyfill-flake8-4-compat.patch: New
file.
* gnu/local.mk (dist_patch_DATA): Register it.

2 years agognu: python-flake8: Update to 4.0.1.
Petr Hodina [Mon, 6 Jun 2022 20:15:10 +0000 (22:15 +0200)]
gnu: python-flake8: Update to 4.0.1.

* gnu/packages/python-xyz.scm (python-flake8): Update to 4.0.1.
[source]: Remove snippet.
[arguments]: Respect tests?.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2 years agognu: python-pycodestyle: Update to 2.8.0.
Petr Hodina [Mon, 6 Jun 2022 20:13:03 +0000 (22:13 +0200)]
gnu: python-pycodestyle: Update to 2.8.0.

* gnu/packages/python-xyz.scm (python-pycodestyle): Update to 2.8.0.
[arguments]: Respect tests?.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2 years agognu: Borg: Update to 1.2.1.
Leo Famulari [Mon, 6 Jun 2022 01:20:57 +0000 (21:20 -0400)]
gnu: Borg: Update to 1.2.1.

* gnu/packages/backup.scm (borg): Update to 1.2.1.

2 years agognu: python-msgpack: Update to 1.0.4.
Leo Famulari [Mon, 6 Jun 2022 01:20:36 +0000 (21:20 -0400)]
gnu: python-msgpack: Update to 1.0.4.

* gnu/packages/python-xyz.scm (python-msgpack): Update to 1.0.4.

2 years agognu: perl-catalyst-devel: Update to 1.42.
Tobias Geerinckx-Rice [Sun, 5 Jun 2022 00:00:01 +0000 (02:00 +0200)]
gnu: perl-catalyst-devel: Update to 1.42.

* gnu/packages/web.scm (perl-catalyst-devel): Update to 1.42.

2 years agognu: perl-xml-compile-soap: Update to 3.27.
Tobias Geerinckx-Rice [Sun, 5 Jun 2022 00:00:00 +0000 (02:00 +0200)]
gnu: perl-xml-compile-soap: Update to 3.27.

* gnu/packages/xml.scm (perl-xml-compile-soap): Update to 3.27.
[propagated-inputs]: Replace perl-file-slurp-tiny with perl-file-slurper.

2 years agodaemon: Quote consistently within a string.
Tobias Geerinckx-Rice [Sun, 5 Jun 2022 00:00:00 +0000 (02:00 +0200)]
daemon: Quote consistently within a string.

* nix/libstore/build.cc (DerivationGoal::registerOutput): ‘’ → `'.

2 years agognu: sudo: Update to 1.9.11.
Tobias Geerinckx-Rice [Sun, 5 Jun 2022 00:00:01 +0000 (02:00 +0200)]
gnu: sudo: Update to 1.9.11.

* gnu/packages/admin.scm (sudo): Update to 1.9.11.

2 years agognu: guvcview: Update to 2.0.8.
Tobias Geerinckx-Rice [Sun, 5 Jun 2022 00:00:02 +0000 (02:00 +0200)]
gnu: guvcview: Update to 2.0.8.

* gnu/packages/video.scm (guvcview): Update to 2.0.8.
[inputs]: Add bdb and libjpeg-turbo.

2 years agodoc: Remove left-over MIPS.
Tobias Geerinckx-Rice [Sun, 5 Jun 2022 00:00:00 +0000 (02:00 +0200)]
doc: Remove left-over MIPS.

* doc/guix.texi (Additional Build Options): Substitute aarch64 for MIPS.

2 years agognu: mu: Update to 1.6.11.
Leo Famulari [Tue, 7 Jun 2022 00:33:13 +0000 (20:33 -0400)]
gnu: mu: Update to 1.6.11.

* gnu/packages/mail.scm (mu): Update to 1.6.11.

2 years agognu: Mutt: Update to 2.2.6.
Leo Famulari [Tue, 7 Jun 2022 00:32:57 +0000 (20:32 -0400)]
gnu: Mutt: Update to 2.2.6.

* gnu/packages/mail.scm (mutt): Update to 2.2.6.

2 years agognu: virtuoso-ose: Do not embed kernel version and timestamps.
Vagrant Cascadian [Sun, 5 Jun 2022 16:13:36 +0000 (09:13 -0700)]
gnu: virtuoso-ose: Do not embed kernel version and timestamps.

* gnu/packages/databases.scm (virtuoso-ose)[arguments]: Add
  'avoid-embedding-kernel-and-timestamps phase.

2 years agognu: uim: Build reproducibly.
Vagrant Cascadian [Mon, 6 Jun 2022 04:09:09 +0000 (21:09 -0700)]
gnu: uim: Build reproducibly.

* gnu/packages/xorg.scm (uim)[arguments]: Disable parallel build.

2 years agognu: discrover: Use reproducible timestamps.
Vagrant Cascadian [Mon, 6 Jun 2022 03:28:33 +0000 (20:28 -0700)]
gnu: discrover: Use reproducible timestamps.

* gnu/packages/bioinformatics.scm (discrover)[arguments]: Add
  'set-force-source-date phase.

2 years agognu: perl-term-size-perl: Remove timestamps.
Vagrant Cascadian [Mon, 6 Jun 2022 20:27:15 +0000 (13:27 -0700)]
gnu: perl-term-size-perl: Remove timestamps.

* gnu/packages/perl.sc (perl-term-size-perl)[arguments]: Add
  'remote-timestamps phase.

2 years agognu: itpp: Avoid embedding build dates.
Vagrant Cascadian [Mon, 6 Jun 2022 18:20:39 +0000 (11:20 -0700)]
gnu: itpp: Avoid embedding build dates.

* gnu/packages/maths.scm (itpp): Add 'set-man-page-date and
  'set-force-source-date phases.

2 years agoservices: syslogd: Do not fsync at each line.
Ludovic Courtès [Mon, 6 Jun 2022 20:35:12 +0000 (22:35 +0200)]
services: syslogd: Do not fsync at each line.

Fixes <https://issues.guix.gnu.org/55707>.

Previously Inetutils' syslogd would call 'fsync' after each line written
to a file.  This would significantly increase boot times on machines
with slow-ish spinning HDDs, where each 'fsync' call would take between
0.1s and 0.4s (and we'd do two of them for each line, one for
/var/log/messages and one for /var/log/debug).

* gnu/services/base.scm (%default-syslog.conf): Add a '-' before each
file name, except /var/log/secure.  Change what goes to /var/log/debug.

2 years agopackages: Use SRFI-71 instead of SRFI-11.
Ludovic Courtès [Mon, 6 Jun 2022 20:32:29 +0000 (22:32 +0200)]
packages: Use SRFI-71 instead of SRFI-11.

* gnu/packages.scm (%package-module-path): Use 'let*' instead of
'let*-values'.
(specification->package, specification->location)
(specification->package+output): Use 'let' instead of 'let-values'.

2 years agopackages: Add 'specifications->packages'.
Antero Mejr [Fri, 27 May 2022 17:13:28 +0000 (13:13 -0400)]
packages: Add 'specifications->packages'.

* gnu/packages.scm (specifications->packages): New procedure.
* guix/scripts/home/import.scm (manifest+configuration-files->code): Use it.
* tests/home-import.scm (match-home-environment-no-services)
(match-home-environment-no-services-nor-packages)
(match-home-environment-bash-service)
(match-home-environment-bash-service-with-alias): Adjust 'packages'
field accordingly.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2 years agognu: Add python-progress.
Peter Polidoro [Fri, 27 May 2022 18:57:26 +0000 (14:57 -0400)]
gnu: Add python-progress.

* gnu/packages/python-xyz.scm (python-progress): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agognu: Add python-canopen.
Peter Polidoro [Fri, 27 May 2022 18:37:22 +0000 (14:37 -0400)]
gnu: Add python-canopen.

* gnu/packages/python-xyz.scm (python-canopen): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agobootloader: grub: Add removable grub-efi bootloader option.
Karl Hallsby [Wed, 25 May 2022 04:32:54 +0000 (23:32 -0500)]
bootloader: grub: Add removable grub-efi bootloader option.

For single-disk installs (external USBs) and for amnesiac UEFIs, Guix is not
found using its default Grub EFI bootloader location of
/boot/efi/EFI/Guix/grubx64.efi means the Guix install will not be found.

To handle this, we can place the bootloader file in the UEFI specification
location, overwriting any other OS that may have placed a file there. This
location is namely /boot/efi/EFI/BOOT/BOOTX64.efi. Grub has explicit support
for this location/situation with the `--removable` flag.

* gnu/bootloader/grub.scm (install-grub-efi-removable)
(grub-efi-removable-bootloader): New variables.
* doc/guix.texi (Bootloader Configuration): Document it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agognu: guile-xapian: Update to 0.2.0.
Arun Isaac [Mon, 6 Jun 2022 19:50:53 +0000 (01:20 +0530)]
gnu: guile-xapian: Update to 0.2.0.

* gnu/packages/guile-xyz.scm (guile-xapian): Update to 0.2.0.
[source]: Remove modules and snippet setting LD_LIBRARY_PATH.

2 years agognu: python-flake8: Allow building with newer python-pyflakes.
Efraim Flashner [Mon, 6 Jun 2022 19:18:36 +0000 (22:18 +0300)]
gnu: python-flake8: Allow building with newer python-pyflakes.

* gnu/packages/python-xyz.scm (python-flake8)[source]: Add snippet to
remove upper bound on dependency python-pyflakes version.

2 years agognu: Add python-labjack.
Maxim Cournoyer [Mon, 6 Jun 2022 17:32:34 +0000 (13:32 -0400)]
gnu: Add python-labjack.

* gnu/packages/python-xyz.scm (python-labjack): New variable.

2 years agognu: Add python-exodriver.
Maxim Cournoyer [Mon, 6 Jun 2022 17:04:08 +0000 (13:04 -0400)]
gnu: Add python-exodriver.

* gnu/packages/python-xyz.scm (python-exodriver): New variable.

2 years agosystem: Fix typo, add doc.
Maxim Cournoyer [Thu, 2 Jun 2022 21:19:03 +0000 (17:19 -0400)]
system: Fix typo, add doc.

* gnu/system.scm (operating-system-kernel-arguments): Fix typo in doc.
(boot-parameters->menu-entry): Add doc.

2 years agognu: xsecurelock: Remove input labels.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:01 +0000 (02:00 +0200)]
gnu: xsecurelock: Remove input labels.

* gnu/packages/xdisorg.scm (xsecurelock)[inputs]:
Remove input labels.

2 years agognu: xsecurelock: Update setuid example in description.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:00 +0000 (02:00 +0200)]
gnu: xsecurelock: Update setuid example in description.

* gnu/packages/xorg.scm (xsecurelock)[description]: Update example code.

2 years agognu: papirus-icon-theme: Remove input labels.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:01 +0000 (02:00 +0200)]
gnu: papirus-icon-theme: Remove input labels.

* gnu/packages/gnome-xyz.scm (papirus-icon-theme)[native-inputs]:
Remove input labels.

2 years agognu: papirus-icon-theme: Update to 20220508.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:02 +0000 (02:00 +0200)]
gnu: papirus-icon-theme: Update to 20220508.

* gnu/packages/gnome-xyz.scm (papirus-icon-theme): Update to 20220508.

2 years agognu: node: Fix cross-compilation.
Jelle Licht [Sun, 5 Jun 2022 15:38:38 +0000 (17:38 +0200)]
gnu: node: Fix cross-compilation.

* gnu/packages/node.scm (node)[phases]{configure}: Unwind the stack before
invoking the exception handler.
{patch-hardcoded-program-references}: Use search-input-file where appropriate.

2 years agognu: node-lts: Update to 14.19.3.
Jelle Licht [Sat, 4 Jun 2022 23:57:28 +0000 (01:57 +0200)]
gnu: node-lts: Update to 14.19.3.

* gnu/packages/node.scm (node-lts): Update to 14.19.3.
[arguments]: Disable test that requires networking.
[native-inputs]: Replace icu4c-67 with icu4c-70.
[inputs]: Replace icu4c-67 with icu4c-70.

2 years agognu: python-rope: Update to 1.1.1.
Ricardo Wurmus [Mon, 6 Jun 2022 13:30:22 +0000 (15:30 +0200)]
gnu: python-rope: Update to 1.1.1.

* gnu/packages/python-xyz.scm (python-rope): Update to 1.1.1.
[arguments]: Add build phase to disable broken test.
[native-inputs]: Add python-pytest and python-pytest-timeout.
[description]: Remove explicit mention of Python 2.

2 years agoimport: hackage: Filter upper/mixed case dependencies too.
Lars-Dominik Braun [Thu, 2 Jun 2022 11:52:08 +0000 (13:52 +0200)]
import: hackage: Filter upper/mixed case dependencies too.

* guix/import/hackage.scm (filter-dependencies): Convert OWN-NAMES
to lowercase before filtering.
(hackage-module->sexp): Remove #f from OWN-NAMES, which is used for
unnamed (default) libraries.
* tests/hackage.scm (test-cabal-internal-library-ignored): Add mismatched
uppercase letters.

2 years agoimport: hackage: Filter internal libraries from inputs and native-inputs.
Lars-Dominik Braun [Sun, 22 May 2022 09:20:07 +0000 (11:20 +0200)]
import: hackage: Filter internal libraries from inputs and native-inputs.

Fixes <https://issues.guix.gnu.org/54760>.

* guix/import/hackage.scm (filter-dependencies): Support multiple
OWN-NAMES.
(hackage-module->sexp): Filter OWN-NAMES from HACKAGE-DEPENDENCIES and
HACKAGE-NATIVE-DEPENDENCIES.
* tests/hackage.scm (test-cabal-internal-library-ignored): New variable.
("hackage->guix-package test internal libraries are ignored"): New testcase.

2 years agoimport: cabal: Support library names
Lars-Dominik Braun [Sun, 22 May 2022 08:56:01 +0000 (10:56 +0200)]
import: cabal: Support library names

* guix/import/cabal.scm (make-cabal-parser): Add name to section.
(is-lib): Add optional name to regular expression.
(lex-rx-res): Support selecting different substring.
(lex-lib): Match 2nd substring from IS-LIB.
(lex-line): Adapt to changes for lex-lib.
(cabal-library): Add name field and export CABAL-LIBRARY-NAME.
(eval): Remove special case for 'library, which is not required any more.
(make-cabal-section): Move special case for LIBRARY.
* tests/hackage.scm (test-read-cabal-library-name): New variable.
("read-cabal test 1"): Adapt testcase to changed internal structure.
("read-cabal test: library name"): New testcase.

2 years agoimport: cabal: Document failing syntax through tests.
Lars-Dominik Braun [Sat, 14 May 2022 13:38:14 +0000 (15:38 +0200)]
import: cabal: Document failing syntax through tests.

* tests/hackage.scm (test-read-cabal-brackets-newline): New variable.
(test-cabal-no-final-newline): Likewise.
("hackage->guix-package test without final newline",
"read-cabal test: property brackets on new line"): New tests.

2 years agoimport: cabal: Allow curly bracket before else statement.
Lars-Dominik Braun [Sun, 1 May 2022 06:34:42 +0000 (08:34 +0200)]
import: cabal: Allow curly bracket before else statement.

* guix/import/cabal.scm (is-else): Turn into procedure.
(lex-line): Move IS-ELSE…
(lex-word): …here.
* tests/hackage.scm (test-cabal-elif-brackets): Extend testcase.

2 years agoimport: cabal: Allow properties without space between key and value.
Lars-Dominik Braun [Sat, 30 Apr 2022 13:39:51 +0000 (15:39 +0200)]
import: cabal: Allow properties without space between key and value.

* guix/import/cabal.scm (lex-word): Add colon to delimiters.
* tests/hackage.scm (test-cabal-property-no-space): New variable.
("hackage->guix-package test properties without space"): New test.

2 years agoimport: cabal: Allow curly brackets in more positions.
Lars-Dominik Braun [Sat, 30 Apr 2022 13:39:34 +0000 (15:39 +0200)]
import: cabal: Allow curly brackets in more positions.

* guix/import/cabal.scm (is-layout-property): Do not expect end of line.
(lex-layout-property): Check for newline.
(lex-property): Stop reading on closing curly bracket.
* tests/hackage.scm (test-read-cabal-2): New variable.
("read-cabal test: if brackets on the same line"): New test.

2 years agoimport: cabal: Support elif statement.
Lars-Dominik Braun [Sat, 30 Apr 2022 13:38:44 +0000 (15:38 +0200)]
import: cabal: Support elif statement.

Fixes <https://issues.guix.gnu.org/54752>.

* guix/import/cabal.scm (make-cabal-parser): Replace if-then-else grammar case with elif-else, modify if-then accordingly.
(is-elif): New procedure.
(lex-elif): Likewise.
(is-id): Add elif keyword.
(lex-word): Add test for elif.
* tests/hackage.scm (test-cabal-if): New variale.
(test-cabal-else): Likewise.
(test-cabal-elif): Likewise.
(test-cabal-elif-brackets): Likewise.
(match-ghc-elif): Likewise.
("hackage->guix-package test lonely if statement",
"hackage->guix-package test else statement",
"hackage->guix-package test elif statement",
"hackage->guix-package test elif statement with brackets"): New tests.

2 years agognu: aqbanking: Do not embed build date.
Vagrant Cascadian [Mon, 6 Jun 2022 05:39:37 +0000 (22:39 -0700)]
gnu: aqbanking: Do not embed build date.

* gnu/packages/gnucash.scm (aqbanking)[arguments]: Add
  'use-version-instead-of-date phase.

2 years agognu: timescaledb: Do not embed running kernel version.
Vagrant Cascadian [Mon, 6 Jun 2022 04:00:37 +0000 (21:00 -0700)]
gnu: timescaledb: Do not embed running kernel version.

* gnu/packages/databases.scm (timescaledb)[arguments]: Add
  'remove-kernel-version phase.

2 years agognu: ncftp: Build reproducibly.
Vagrant Cascadian [Mon, 6 Jun 2022 03:03:56 +0000 (20:03 -0700)]
gnu: ncftp: Build reproducibly.

* gnu/packages/patches/ncftp-reproducible.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add patch.
* gnu/packages/ftp.scm (ncftp): Add patch.

2 years agognu: sendmail: Remove timestamps.
Vagrant Cascadian [Sun, 5 Jun 2022 17:33:53 +0000 (10:33 -0700)]
gnu: sendmail: Remove timestamps.

* gnu/packages/mail.scm (sendmail)[arguments]: Add 'remove-build-timestamps
  phase.

2 years agognu: autogen: Use reproducible date for man pages.
Vagrant Cascadian [Sun, 5 Jun 2022 16:14:23 +0000 (09:14 -0700)]
gnu: autogen: Use reproducible date for man pages.

* gnu/packages/autogen.scm (autogen)[arguments]: Add 'set-man-page-date phase.

2 years agognu: rhino: Remove build timestamps.
Vagrant Cascadian [Sun, 5 Jun 2022 18:03:22 +0000 (11:03 -0700)]
gnu: rhino: Remove build timestamps.

* gnu/packages/javascript.scm (rhino)[arguments]: Add 'remove-build-dates
  phase.

2 years agognu: transmission: Do not embed kernel version in user agent.
Vagrant Cascadian [Sun, 5 Jun 2022 16:24:51 +0000 (09:24 -0700)]
gnu: transmission: Do not embed kernel version in user agent.

* gnu/packages/bittorrent.scm (transmission)[arguments]: Add
  'remove-kernel-version phase.

2 years agognu: python-flake8: Update to 3.9.2.
Liliana Marie Prikler [Sun, 5 Jun 2022 21:54:01 +0000 (23:54 +0200)]
gnu: python-flake8: Update to 3.9.2.

* gnu/packages/python-xyz.scm (python-flake8): Update to 3.9.2.

2 years agognu: emacs-elm-mode: Update to 0.22.0.
Luis Felipe [Sun, 29 May 2022 23:11:01 +0000 (18:11 -0500)]
gnu: emacs-elm-mode: Update to 0.22.0.

This version fixes compilation on Emacs 28.1 (see
https://github.com/jcollard/elm-mode/issues/186).

*  gnu/packages/emacs-xyz.scm (emacs-elm-mode): Update to 0.22.0.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agoservices: guix-data-service: Increase timeout for service start.
Timotej Lazar [Sun, 29 May 2022 17:36:00 +0000 (19:36 +0200)]
services: guix-data-service: Increase timeout for service start.

The guix-data-service system test fails on a slower machine with a one-minute
time limit.

* gnu/services/guix.scm (guix-data-service): Double the #:pid-file-timeout.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agoservices: pam-limits: Add sudo and sshd.
Kiran Shila [Sun, 29 May 2022 03:54:30 +0000 (20:54 -0700)]
services: pam-limits: Add sudo and sshd.

* gnu/services/base.scm (pam-limits-service-type): Add "sudo" and "sshd"
to the list.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agognu: Add gitlint.
Brian Kubisiak [Thu, 2 Jun 2022 01:56:46 +0000 (18:56 -0700)]
gnu: Add gitlint.

* gnu/packages/version-control.scm (gitlint): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agognu: python-sh: Update to 1.14.2.
Brian Kubisiak [Thu, 2 Jun 2022 01:56:40 +0000 (18:56 -0700)]
gnu: python-sh: Update to 1.14.2.

* gnu/packages/python-xyz.scm (python-sh): Update to 1.14.2.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agognu: wpa-supplicant: Install DBus service file.
Roman Riabenko [Sat, 28 May 2022 15:36:48 +0000 (18:36 +0300)]
gnu: wpa-supplicant: Install DBus service file.

* gnu/packages/admin.scm (wpa-supplicant)[arguments]: In
'install-dbus-conf' phase, install DBus service file for
dbus-system-services-builder to find.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2 years agotests: childhurd: Make sure "guix build -d" works.
Ludovic Courtès [Sun, 5 Jun 2022 21:02:20 +0000 (23:02 +0200)]
tests: childhurd: Make sure "guix build -d" works.

* gnu/tests/virtualization.scm (run-childhurd-test)
["guix-daemon up and running"]: New test.

2 years agotests: childhurd: Generalize command execution over SSH.
Ludovic Courtès [Sun, 5 Jun 2022 20:30:18 +0000 (22:30 +0200)]
tests: childhurd: Generalize command execution over SSH.

* gnu/tests/virtualization.scm (run-childhurd-test)[run-uname-over-ssh]:
Rename to...
[run-command-over-ssh]: ... this.  Add 'command' parameter and honor it.
["SSH up and running"]: Adjust accordingly.

2 years agognu: commencement: Remove unnecessary uses of 'bootstrap-origin'.
Ludovic Courtès [Sun, 5 Jun 2022 19:40:44 +0000 (21:40 +0200)]
gnu: commencement: Remove unnecessary uses of 'bootstrap-origin'.

* gnu/packages/commencement.scm (gnumach-headers-boot0): Remove
unnecessary 'package-with-bootstrap-guile'.
(hurd-source-boot0): Remove unnecessary 'bootstrap-origin'.

2 years agognu: commencement: Fetch bootstrap tarballs from ftp.gnu.org too.
Ludovic Courtès [Sat, 4 Jun 2022 15:17:43 +0000 (17:17 +0200)]
gnu: commencement: Fetch bootstrap tarballs from ftp.gnu.org too.

As a side effect, this ensures those tarballs are eventually archived by
Software Heritage.

* gnu/packages/commencement.scm (tcc-boot0)[source]: Add "mirror://gnu"
URL.
(gnumach-headers-boot0)[source]: Likewise.
(hurd-source-boot0): Likewise.

2 years agognu: Add apricots.
Foo Chuan Wei [Fri, 20 May 2022 04:15:36 +0000 (04:15 +0000)]
gnu: Add apricots.

* gnu/packages/games.scm (apricots): New variable.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2 years agognu: worklog: Remove duplicated word in description.
Foo Chuan Wei [Fri, 20 May 2022 05:44:52 +0000 (05:44 +0000)]
gnu: worklog: Remove duplicated word in description.

* gnu/packages/task-management.scm (worklog)[description]: Remove
  duplicated word.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2 years agognu: emacs-ox-gemini: Update to latest commit.
Tobias Kortkamp [Fri, 20 May 2022 11:25:16 +0000 (13:25 +0200)]
gnu: emacs-ox-gemini: Update to latest commit.

* gnu/packages/emacs-xyz.scm (emacs-ox-gemini): Update to latest commit.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2 years agogitignore: Add .DS_Store.
Pavel Shlyak [Thu, 26 May 2022 17:29:42 +0000 (20:29 +0300)]
gitignore: Add .DS_Store.

Ignore MacOS specific file: https://en.wikipedia.org/wiki/.DS_Store

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2 years agognu: python-pyflakes: Update to 2.4.0.
jgart [Fri, 27 May 2022 05:24:37 +0000 (00:24 -0500)]
gnu: python-pyflakes: Update to 2.4.0.

* gnu/packages/python-xyz.scm (python-pyflakes): Update to 2.4.0.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2 years agognu: Add python-musical-scales
Artyom V. Poptsov [Mon, 30 May 2022 19:57:49 +0000 (22:57 +0300)]
gnu: Add python-musical-scales

* gnu/packages/python-xyz.scm (python-musical-scales): New variable.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2 years agognu: Add emacs-corfu-doc.
jgart [Sun, 22 May 2022 00:19:31 +0000 (19:19 -0500)]
gnu: Add emacs-corfu-doc.

* gnu/packages/emacs-xyz.scm (emacs-corfu-doc): New variable.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2 years agognu: emacs-corfu: Update to 0.25.
jgart [Sun, 29 May 2022 07:50:24 +0000 (02:50 -0500)]
gnu: emacs-corfu: Update to 0.25.

* gnu/packages/emacs-xyz.scm (emacs-corfu): Update to 0.25.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2 years agognu: gnumeric: Remove input labels.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:00 +0000 (02:00 +0200)]
gnu: gnumeric: Remove input labels.

* gnu/packages/gnome.scm (gnumeric)[native-inputs]:
Remove input labels.

2 years agognu: gnumeric: Update to 1.12.52.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:02 +0000 (02:00 +0200)]
gnu: gnumeric: Update to 1.12.52.

* gnu/packages/gnome.scm (gnumeric): Update to 1.12.52.

2 years agognu: goffice: Update to 0.10.52.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:03 +0000 (02:00 +0200)]
gnu: goffice: Update to 0.10.52.

* gnu/packages/gnome.scm (goffice): Update to 0.10.52.

2 years agognu: gnome-autoar: Update to 0.4.3.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:01 +0000 (02:00 +0200)]
gnu: gnome-autoar: Update to 0.4.3.

* gnu/packages/gnome.scm (gnome-autoar): Update to 0.4.3.

2 years agognu: gnome-mines: Make yelp a regular input.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:01 +0000 (02:00 +0200)]
gnu: gnome-mines: Make yelp a regular input.

* gnu/packages/gnome.scm (gnome-mines)[native-inputs]: Move yelp from here…
[inputs]: …to here, as it's a reference of .gnome-mines-real.

2 years agognu: gnome-mines: Remove input labels.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:04 +0000 (02:00 +0200)]
gnu: gnome-mines: Remove input labels.

* gnu/packages/gnome.scm (gnome-mines)[native-inputs]:
Remove input labels.

2 years agognu: gnome-mines: Update to 40.1.
Tobias Geerinckx-Rice [Sun, 29 May 2022 00:00:02 +0000 (02:00 +0200)]
gnu: gnome-mines: Update to 40.1.

* gnu/packages/gnome.scm (gnome-mines): Update to 40.1.