Commit graph

84316 commits

Author SHA1 Message Date
Tobias Geerinckx-Rice
8e6989fcaf
bash completion: Complete top-level options.
* etc/completion/bash/guix (_guix_complete_option): Fix operation without a {,sub}command.
(_guix_complete): Call it also when no command is given.
2021-10-31 00:57:07 +02:00
Tobias Geerinckx-Rice
0987a0eba4
bash completion: Don't hard-code "guix" binary name.
* etc/completion/bash/guix (_guix_complete_command):
Use ${COMP_WORDS[0]} instead of hard-coding "guix".
2021-10-31 00:57:07 +02:00
Tobias Geerinckx-Rice
8f45555781
ui: Use DISPLAY in SHOW-GUIX-HELP.
* guix/ui.scm (show-guix-help): Use DISPLAY where FORMAT isn't needed.
2021-10-31 00:57:07 +02:00
Tobias Geerinckx-Rice
943dd59beb
ui: Add top-level options to help text.
This also makes automated ‘guix --h<Tab>’ completion possible.

* guix/ui.scm (show-guix-help): Document that an OPTION's an option,
and all valid options.
2021-10-31 00:57:07 +02:00
Tobias Geerinckx-Rice
c73d1e68cf
gnu: bschaffl: Update to 1.4.8.
* gnu/packages/music.scm (bschaffl): Update to 1.4.8.
2021-10-31 00:57:07 +02:00
Tobias Geerinckx-Rice
3f5f58df8b
gnu: bjumblr: Update to 1.6.8.
* gnu/packages/music.scm (bjumblr): Update to 1.6.8.
2021-10-31 00:57:06 +02:00
Tobias Geerinckx-Rice
b8da019283
gnu: bshapr: Update to 0.13.
* gnu/packages/music.scm (bshapr): Update to 0.13.
2021-10-31 00:57:06 +02:00
Tobias Geerinckx-Rice
9c1a1c3b36
gnu: bchoppr: Update to 1.10.10.
* gnu/packages/music.scm (bchoppr): Update to 1.10.10.
2021-10-31 00:57:06 +02:00
Tobias Geerinckx-Rice
3df874deb9
gnu: bsequencer: Update to 1.8.10.
* gnu/packages/music.scm (bsequencer): Update to 1.8.10.
[arguments]: Set CC to something sensible.
2021-10-31 00:57:06 +02:00
Ludovic Courtès
c4ac8cf4f6
doc: Mention 'guix home reconfigure' upfront.
* doc/guix.texi (Declaring the Home Environment): Mention 'guix home
reconfigure'.
2021-10-31 00:51:07 +02:00
Ludovic Courtès
971a69d8e3
doc: Avoid misuse of @ref.
* doc/guix.texi (Declaring the Home Environment): Avoid @ref in the
middle of a sentence.
2021-10-31 00:51:06 +02:00
Ludovic Courtès
7711a6c3f4
doc: Mention "guix home import" upfront.
* doc/guix.texi (Declaring the Home Environment): Mention "guix home
import".
2021-10-31 00:51:06 +02:00
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