Commit graph

84354 commits

Author SHA1 Message Date
Ludovic Courtès
6f4ca78761
home: import: Avoid duplication of 'manifest->code'.
* guix/scripts/home/import.scm (manifest->code): Remove.
(manifest+configuration-files->code): New procedure.
(import-manifest): Use 'manifest+configuration-files->code' instead of
'manifest->code'.
* tests/home-import.scm (eval-test-with-home-environment): Likewise.
(match-home-environment-transformations): New procedure.
("manifest->code: No services, package transformations"): New test.
2021-10-31 00:51:06 +02:00
Ludovic Courtès
96728c54df
home: import: Factorize triplicated 'version-spec' procedure.
* guix/scripts/package.scm (manifest-entry-version-prefix): New
procedure, moved from...
(export-manifest)[version-spec]: ... here.  Adjust caller.
* tests/home-import.scm (version-spec): Remove.
(eval-test-with-home-environment): Use 'manifest-entry-version-prefix'
instead.
* guix/scripts/home/import.scm (import-manifest): Likewise.
2021-10-31 00:51:06 +02:00
Ludovic Courtès
f3933ae40d
home: import: Clarify "destination directory".
Suggested by Liliana Marie Prikler <liliana.prikler@gmail.com>.

* guix/scripts/home/import.scm (configurations+modules): Rename
'destination-directory' to 'configuration-directory'.  Improve
docstring.
2021-10-31 00:51:06 +02:00
Ludovic Courtès
341fba217f
home: import: Compare procedures with 'eq?'.
'procedure-name' is a debugging aid and cannot be reliably used to
check for procedure equality.

* guix/scripts/home/import.scm (configurations+modules): Remove use of
'procedure-name'.
2021-10-31 00:51:06 +02:00
Xinglu Chen
ea19381bd9
guix home: import: Call ‘local-file’ with ‘name’
Set the name of the file to just the basename of the file passed to
‘local-file’.

* guix/scripts/home/import.scm (basename+remove-dots): New procedure.
(generate-bash-configuration+modules): Use it.
* tests/home-import.scm (match-home-environment-bash-service): Adjust
accordingly.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-31 00:51:06 +02:00
Xinglu Chen
40acbaf078
Add tests for ‘guix home import’.
* tests/home-import.scm: New file.
* Makefile.am (SCM_TESTS): Add it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-31 00:51:05 +02:00
Xinglu Chen
87c04b0e17
doc: Document the ‘guix home import’ subcommand.
* doc/guix.texi (Invoking guix home): Document ‘guix home import’.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-31 00:51:05 +02:00
Xinglu Chen
256bd71264
guix home: import: Delete duplicate modules when importing.
Two different services might require the same module(s), so delete duplicates
when generating the ‘use-modules’ form.

* import.scm (manifest->code): Delete duplicate modules.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-31 00:51:05 +02:00
Xinglu Chen
e12e8aad35
guix home: import: Don’t use 'slurp-file-gexp'.
‘slurp-file-gexp’ is not a bound procedure.

* guix/scripts/home/import.scm (generate-bash-configuration+modules): Don’t
  use ‘slurp-file-gexp’.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-31 00:51:05 +02:00
Xinglu Chen
3be1a982f3
guix home: import: Fix module name for Bash service.
* guix/scripts/home/import.scm (generate-bash-configuration+modules): Change
(gnu home-services bash) to (gnu home-services shells); add (guix gexp).

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-31 00:51:05 +02:00
Xinglu Chen
e4d09d25ae
guix home: import: Allow multiple modules to be imported for each service.
Previously, only one module could be imported for each service, e.g., only
(gnu home-services shell) could be imported when generating the Bash service
declaration.  However, for some services, multiple modules might need to be
imported in order for it to work.

* guix/scripts/home/import.scm (generate-bash-module+configuration): Rename to
...
(generate-bash-configuration+modules): ... this.
(%files-configurations-alist): Rename to ...
(%files+configurations-alist): ... this.
(modules+configurations): Rename to ...
(configurations+modules): ... this.
(manifest->code): Adjust accordingly.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-31 00:51:05 +02:00
Xinglu Chen
d5eb05f01e
guix home: import: Make the user to specify a destination directory.
Copy the appropriate the relevant configuration files to the destination
directory, and call ‘local-file’ on them.

Without this, ‘guix home import’ will generate a service declaration like this

  (service
   home-bash-service-type
   (home-bash-configuration
    (bashrc
     (list (slurp-file-gexp
            (local-file "/home/yoctocell/.bashrc"))))))

but when running ‘guix home reconfigure’, the ~/.bashrc file would be moved, so
when running ‘guix home reconfigure’ for the second time, it would read the
~/.bashrc which is itself a symlink to a file the store.

* guix/scripts/home/import.scm (generate-bash-module+configuration): Take
‘destination-directory’ parameter
(modules+configurations): Copy the user’s configuration file to
‘%destination-directory’.
* guix/scripts/home.scm (process-command): Adjust accordingly; create
‘destination’ if it doesn’t exist.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-31 00:51:05 +02:00
Mădălin Ionel Patrașcu
cf0abb6cfe
gnu: Add r-formattable.
* gnu/packages/cran.scm (r-formattable): New variable.
2021-10-30 19:56:15 +00:00
Timotej Lazar
142344b6ef
gnu: qemu: Add Guix support to QEMU guest agent.
QEMU guest agent hardcodes paths to /sbin/hwclock and /sbin/shutdown. Patch
the source to try binaries under /run/current-system/profile/sbin first.

* gnu/packages/patches/qemu-fix-agent-paths.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register the patch.
* gnu/packages/virtualization.scm (qemu)[origin]: Apply it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-30 19:16:23 +02:00
jgart
f8d3c98162
gnu: Add r-bien.
* gnu/packages/cran.scm (r-bien): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-30 19:16:23 +02:00
jgart
2339ee166c
gnu: Add r-fasterize.
* gnu/packages/cran.scm (r-fasterize): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-30 19:16:23 +02:00
Raphaël Mélotte
a239b1e678
gnu: Add python-ijson.
* gnu/packages/python-xyz.scm (python-ijson): New variable.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2021-10-30 19:16:18 +02:00
Ludovic Courtès
98173af522
shell: Error out when an unauthorized guix.scm/manifest.scm is found.
The previous behavior was confusing: a warning would be printed and
'guix shell' would go on starting an empty environment.

Reported by Tobias Geerinckx-Rice <me@tobias.gr>.

* guix/scripts/shell.scm (auto-detect-manifest): Change "not loading"
case from warning to error.
* tests/guix-shell.sh: Adjust accordingly.
2021-10-30 19:12:40 +02:00
Foo Chuan Wei
bcce83c785
gnu: Add Random Identity Generator (rig)
* gnu/packages/shellutils.scm (rig): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-30 19:12:40 +02:00
Foo Chuan Wei
d4449565ed
gnu: ta-lib: Explicitly link math library.
* gnu/packages/finance.scm (ta-lib)[arguments]: Add 'link-math-library' phase.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-10-30 14:43:07 +02:00
Foo Chuan Wei
cd188b9c6f
gnu: Add cl-pass.
* gnu/packages/lisp-xyz.scm (cl-pass, ecl-cl-pass, sbcl-cl-pass): New
  variables.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-10-30 11:08:58 +02:00
Foo Chuan Wei
d7a1eb2a66
gnu: Add cl-clinenoise.
* gnu/packages/lisp-xyz.scm (cl-clinenoise, ecl-clinenoise,
  sbcl-clinenoise): New variables.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-10-30 11:01:24 +02:00
Marius Bakke
b440794c3d
gnu: ungoogled-chromium: Update to 95.0.4638.69-1.
* gnu/packages/chromium.scm (%chromium-version): Set to 95.0.4638.69.
(%ungoogled-revision): Inherit from it.
(%ungoogled-origin, ungoogled-chromium): Update hashes.
2021-10-30 00:51:08 +02:00
Nicolas Goaziou
d7c93012d1
gnu: mame: Update to 0.237.
* gnu/packages/emulators.scm (mame): Update to 0.237.
2021-10-29 23:03:18 +02:00
Nicolas Goaziou
27b0d89303
gnu: scintilla: Update to 5.1.3.
* gnu/packages/text-editors.scm (scintilla): Update to 5.1.3.
2021-10-29 22:50:44 +02:00
Nicolas Goaziou
b62a6317d1
gnu: thinkfan: Update to 1.3.0.
* gnu/packages/linux.scm (thinkfan): Update to 1.3.0.
2021-10-29 22:45:44 +02:00
Nicolas Goaziou
00197d7508
gnu: emacs-shell-command+: Update to 2.3.2.
* gnu/packages/emacs-xyz.scm (emacs-shell-command+): Update to 2.3.2.
2021-10-29 22:37:20 +02:00
Nicolas Goaziou
211cebef1b
gnu: emacs-ebdb: Update to 0.8.8.
* gnu/packages/emacs-xyz.scm (emacs-ebdb): Update to 0.8.8.
2021-10-29 22:33:49 +02:00
Vagrant Cascadian
52ab88a5aa
gnu: diffoscope: Update to 189.
* gnu/packages/diffoscope.scm (diffoscope): Update to 189.
  [arguments] Remove phases 'use-dumppdf-py and 'fpc-external-tool.
  Update 'skip-python-tests.
2021-10-29 13:19:11 -07:00
Tobias Geerinckx-Rice
cbe902545d
gnu: blueman: Update to 2.2.3.
* gnu/packages/networking.scm (blueman): Update to 2.2.3.
2021-10-29 21:31:18 +02:00
Tobias Geerinckx-Rice
503a0cfc91
gnu: corefreq: Update to 1.87.4.
* gnu/packages/linux.scm (corefreq): Update to 1.87.4.
2021-10-29 21:31:18 +02:00
Tobias Geerinckx-Rice
3af75416e7
gnu: chroma: Update to 1.19.
* gnu/packages/games.scm (chroma): Update to 1.19.
[arguments]: Remove "CFLAGS=-fgnu89-inline" work-around.
2021-10-29 21:14:39 +02:00
Tobias Geerinckx-Rice
36d6b1ac5f
gnu: botan: Omit static library.
* gnu/packages/crypto.scm (botan)[arguments]: Add a "--disable-static"
configure flag.
2021-10-29 21:14:39 +02:00
Tobias Geerinckx-Rice
fea894d327
gnu: botan: Update to 2.18.2.
* gnu/packages/crypto.scm (botan): Update to 2.18.2.
2021-10-29 21:14:38 +02:00
Liliana Marie Prikler
641fd253b8
gnu: komikku: Update to 0.35.2.
* gnu/packages/gnome.scm (komikku): Update to 0.35.2.
2021-10-29 19:50:38 +02:00
Simon South
29f97a2e3f
gnu: knot-resolver: Update to 5.4.2.
* gnu/packages/dns.scm (knot-resolver): Update to 5.4.2.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2021-10-29 18:32:29 +02:00
Tobias Geerinckx-Rice
4938ea5fea
gnu: butt: Update to 0.1.32.
* gnu/packages/audio.scm (butt): Update to 0.1.32.
2021-10-29 18:32:29 +02:00
Ricardo Wurmus
21fcb08d09
gnu: recoll: Enable GUI and add inputs for common filters.
* gnu/packages/search.scm (recoll)[arguments]: Enable GUI; add build phase
'wrap-filters.
[inputs]: Replace python-pdftotext with poppler; add qtbase-5, unzip, gawk,
grep, groff, gzip, libiconv, perl, perl-image-exiftool, sed, and tar.
2021-10-29 11:57:03 +00:00
Maxim Cournoyer
ad39268cdf
Revert "gnu: docker-compose: Update to 1.29.2"
This reverts commit c9c4c851a8, until the
following runtime dependency problem can be investigated:

    pkg_resources.DistributionNotFound: The 'python-dotenv<1,>=0.13.0'
    distribution was not found and is required by docker-compose
2021-10-28 21:55:27 -04:00
Ludovic Courtès
7dbd5339d7
gnu: python-slugify: Honor #:tests?.
* gnu/packages/python-web.scm (python-slugify)[arguments]: Honor #:tests?
2021-10-28 21:30:28 +02:00
jgart
cb11325a18
gnu: python-slugify: Update to 5.0.2.
* gnu/packages/python-web.scm (python-slugify): Update to 5.0.2.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-28 21:30:28 +02:00
Vinicius Monego
e57817c472
gnu: Add ginac.
* gnu/packages/algebra.scm (ginac): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-28 21:30:28 +02:00
Vinicius Monego
7b2a30d8b4
gnu: Add cln.
* gnu/packages/multiprecision.scm (cln): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-28 21:30:28 +02:00
Robby Zambito
91bb0955d9
gnu: waypipe: Update to 0.8.1
* gnu/packages/freedesktop.scm (waypipe): Update to 0.8.1.
[arguments]: Remove obsolete 'fix-sleep-path phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-28 21:30:28 +02:00
Robby Zambito
d0850dbd34
gnu: waypipe: Simplify 'fix-sleep-path phase.
* gnu/packages/freedesktop.scm (waypipe)
[arguments]: Remove inputs argument.
[native-inputs]: Remove coreutils.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-10-28 21:30:27 +02:00
Ludovic Courtès
e171182a20
packages: Optionally validate Texinfo markup at expansion time.
* guix/packages.scm (validate-texinfo): New macro.
(<package>)[synopsis, description]: Add 'sanitize' property.
2021-10-28 21:30:27 +02:00
Ludovic Courtès
6938d9f1c7
ui: Gracefully handle invalid Texinfo markup in package blurbs.
Previously 'guix search' & co. would crash when encountering invalid
Texinfo.

* guix/ui.scm (texi->plain-text*): New procedure.
(package-field-string, package->recutils): Use it.
2021-10-28 21:30:27 +02:00
Ludovic Courtès
2015d3f042
store: 'map/accumulate-builds' handler checks the store received.
This is a followup to b19250eec6,
providing a proper fix for <https://issues.guix.gnu.org/46756>.

* guix/remote.scm (remote-eval): Revert b19250eec6.
* guix/store.scm (build-accumulator): Turn into a procedure.  Call
CONTINUE when the store is not eq? to the initial store.
(map/accumulate-builds): Adjust accordingly.
* tests/store.scm ("map/accumulate-builds and different store"): New test.
2021-10-28 21:30:27 +02:00
Ludovic Courtès
45b251fd04
doc: Allow offloading of the expensive derivations.
* doc/build.scm (translated-texi-manuals)
(html-manual, pdf-manual): Pass #:local-build? #f.
2021-10-28 21:30:27 +02:00
Ludovic Courtès
219cf5093e
import: cran: Use the standard diagnostic procedures.
* guix/import/cran.scm (bioconductor-packages-list)
(fetch-description): Use 'warning' instead of 'format'.
2021-10-28 21:30:23 +02:00