Commit graph

377 commits

Author SHA1 Message Date
Liliana Marie Prikler
2c9f13ba63
etc: Match define-public only at line start.
The current regexp simply matches the first occurence, which more often than
not points to the *previous* variable.

* etc/snippets/text-mode/guix-commit-message-update-package ($1): Restrict
match to beginning of line with optional indentation.
2022-01-19 20:47:03 +01:00
Ludovic Courtès
93d3a2b23c
bash completion: Complete "guix home" sub-commands.
* etc/completion/bash/guix (_guix_complete): Treat "guix home" like
"guix system".
2022-01-17 19:05:48 +01:00
Fulbert
e35deac9e7
bash completion: Fix options completion.
Fixes, for example, "guix import pypi --<TAB>", which would previously
fail to show '--recursive'.

* etc/completion/bash/guix (_guix_complete_option): Fix options
completion for first subcommand.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-01-16 23:56:56 +01:00
Florian Pelz
0891ac16d0
news: Add 'de' translation.
* etc/news.scm: Add German translation of 'guix style --styling=format' entry.
2022-01-16 09:01:10 +01:00
Ludovic Courtès
9a112a8fe1
news: Fix typos in French text.
* etc/news.scm: Fix typos.
2022-01-10 19:31:03 +01:00
Ludovic Courtès
0976e92a0f
news: Add news entry about 'guix style'.
* etc/news.scm: Add entry.
2022-01-10 15:01:30 +01:00
Ludovic Courtès
c4fe13c294
style: Add '--styling' option.
* guix/scripts/style.scm (format-package-definition): New procedure.
(%options, show-help): Add "--styling".
(%default-options): Add 'styling-procedure'.
(guix-style): Honor it.
* tests/style.scm (with-test-package)
("input labels, 'safe' policy")
("input labels, 'safe' policy, nothing changed")
("input labels, margin comment")
("input labels, margin comment on long list")
("input labels, line comment")
("input labels, modify-inputs and margin comment"): Pass "-S inputs".
* etc/indent-code.el: Remove.
* doc/contributing.texi (Formatting Code): Mention "guix style" instead
of "etc/indent-code.el".
(Submitting Patches): Add item for "guix style".
* doc/guix.texi (Invoking guix style): Document "-S" and update.
2022-01-10 14:59:26 +01:00
Florian Pelz
8fcf947591
news: Add 'de' translation.
* etc/news.scm: Add German translation of ‘--tune’ entry.
2022-01-02 14:56:42 +01:00
Florian Pelz
f107c20e50
news: Add 'de' translation.
* etc/news.scm: Add German translation of ‘integer expected from stream’ entry.
2022-01-02 11:51:51 +01:00
Ludovic Courtès
40662f7da8
news: Add entry about '--tune'.
* etc/news.scm: Add entry.
2022-01-01 15:56:32 +01:00
Tobias Geerinckx-Rice
1cfb8be3a1
news: Tie the latest news entry to a later commit.
Using 1eb40a6 was more correct than pragmatic, as those who have upgraded
their own Guix since then will not see the message urging them to upgrade
the Guix they don't know about.

This follows up on commit df830ef91a.

* etc/news.scm: Tie latest news entry to an arbitrary later commit.
2021-12-30 13:57:05 +01:00
Tobias Geerinckx-Rice
df830ef91a
news: Add ‘integer expected from stream’ entry.
* etc/news.scm: Add entry.
2021-12-30 13:41:27 +01:00
Florian Pelz
8a96bf4c74
news: Add 'de' translation.
* etc/news.scm: Add German translation of GDM Wayland entry.
2021-12-14 22:35:58 +01:00
Florian Pelz
af220bfbd2
news: Add 'de' translation.
* etc/news.scm: Add German translation of package inputs entry.
2021-12-14 18:21:59 +01:00
Florian Pelz
644ff4dc69
news: Add 'de' translation.
* etc/news.scm: Add German translation of static networking entry.
2021-12-14 15:41:34 +01:00
Ludovic Courtès
1052ae5f03
Merge branch 'master' into core-updates-frozen 2021-12-13 11:49:15 +01:00
Ludovic Courtès
c8609493ba
news: Add entry about 'static-networking-service-type'.
* etc/news.scm: Add entry.
2021-12-13 00:09:33 +01:00
Mathieu Othacehe
32750e8c3e
Merge remote-tracking branch 'signed/master' into core-updates 2021-12-10 21:49:25 +01:00
Tobias Geerinckx-Rice
f3af1fb0bc
bash completion: Complete ‘guix shell -f’.
* etc/completion/bash/guix (_guix_complete): Suggest a file name
following ‘guix shell […] -f’.
2021-12-08 21:09:55 +01:00
Ludovic Courtès
3867cb7885
maint: Don't require unsupported packages such as GNOME on i686-linux.
* etc/release-manifest.scm (%system-manifest): Filter out PACKAGE when
it doesn't pass 'supported-package?'.
2021-12-08 18:56:52 +01:00
Ricardo Wurmus
9bc0f45df5
Merge remote-tracking branch 'origin/master' into core-updates-frozen 2021-12-05 19:17:41 +01:00
Jonathan Brielmaier
1e5656e7bd
news: Add copyright line for myself.
* etc/news.scm: Add myself to the copyright headers.
2021-12-04 15:10:29 +01:00
Jonathan Brielmaier
205a65839a
news: Add entry about Icedove 91.
* etc/news.scm: New entry.
2021-12-01 22:52:02 +01:00
Josselin Poiret
4b28553e73
news: Notify of Wayland support in GDM
* etc/news.scm: Add a news entry.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-11-15 11:49:45 +01:00
Efraim Flashner
1c94392a13
Merge remote-tracking branch 'origin/master' into core-updates-frozen 2021-11-08 09:06:14 +02:00
Tobias Geerinckx-Rice
071f4e3db3
guix-install.sh: Undo some bugs introduced by shellcheck.
* etc/guix-install.sh: Unquote all file names containing ~root.
2021-11-07 20:09:59 +01:00
Efraim Flashner
bc5155b952
Merge remote-tracking branch 'origin/master' into core-updates-frozen 2021-10-31 14:49:47 +02:00
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
Florian Pelz
2efc7819ce
news: Add 'de' translation.
* etc/news.scm: Add German translation of "guix shell" entry.
2021-10-27 15:39:36 +02:00
Ludovic Courtès
4aa41a37f0
news: Add entry about "guix shell".
* etc/news.scm: Add entry.
2021-10-25 20:11:25 +02:00
Ludovic Courtès
80edb7df65
Add 'guix shell'.
* guix/scripts/shell.scm, tests/guix-shell.sh: New files.
* Makefile.am (MODULES): Add 'shell.scm'.
(SH_TESTS): Add 'tests/guix-shell.sh'.
* guix/scripts/environment.scm (show-environment-options-help): New
procedure.
(show-help): Use it.
(guix-environment*): New procedure.
(guix-environment): Use it.
* po/guix/POTFILES.in: Add it.
* doc/guix.texi (Features): Refer to "guix shell"
(Invoking guix package): Likewise.
(Development): Likewise.
(Invoking guix shell): New node.
(Invoking guix environment): Add deprecation warning.
(Debugging Build Failures): Use 'guix shell' in examples.
(Invoking guix container): Refer to 'guix shell'.
(Invoking guix processes, Virtualization Services): Adjust examples to
use 'guix shell'.
* doc/contributing.texi (Building from Git): Refer to 'guix shell'.
* etc/completion/bash/guix: Handle "shell".
2021-10-25 18:58:18 +02:00
Liliana Marie Prikler
55f6d9e818
etc: completion: Filter gratuitous spaces from available packages.
Tested with:

  guix environment --{ad-hoc,pure} zsh guix bash-completion coreutils -- zsh
  % fpath=(~/guix/etc/completion/zsh $fpath)
  % autoload -U compinit; compinit

* etc/completion/zsh/_guix (_guix_list_available_packages): Remove spaces.

Co-authored-by: Tobias Geerinckx-Rice <me@tobias.gr>
2021-10-24 20:17:05 +02:00
Mathieu Othacehe
e486b2b674
Merge remote-tracking branch 'signed/master' into core-updates 2021-10-18 14:37:26 +00:00
Sarah Morgensen
f8b10932c8
Add git configuration templates to improve diff hunk header detection.
This is a follow-up to commit 9fc8ae4171, which
missed two hunks from <https://issues.guix.gnu.org/50363>.

Reported by hackeryarn on #guix.

* .gitattributes, etc/git/gitconfig: New files.

Signed-off-by: Marius Bakke <marius@gnu.org>
2021-10-14 00:24:34 +02:00
Mathieu Othacehe
a1eca979fb
Merge remote-tracking branch 'origin/master' into core-updates-frozen. 2021-10-12 17:46:23 +00:00
Ludovic Courtès
2ad1ef8446
disarchive-manifest: Provide valid 'version' string.
* etc/disarchive-manifest.scm <top level>: Turn 'version' field into a
string.
2021-10-09 01:02:18 +02:00
Tobias Geerinckx-Rice
ed14bc2984
bash completion: Fix ‘system’ & ‘container’ subcommands.
* etc/completion/bash/guix (_guix_complete): Count words from the
innermost command.
2021-10-03 19:23:49 +02:00
Tobias Geerinckx-Rice
d71cfaea30
bash completion: Complete ‘guix size’ file names.
* etc/completion/bash/guix (_guix_complete): Complete store file names
after the ‘size’ command.
2021-10-03 19:23:49 +02:00
Tobias Geerinckx-Rice
9e3355d2a3
bash completion: Complete ‘guix build’ file names.
* etc/completion/bash/guix
(_guix_complete_available_package_or_store_file): New function.
(_guix_complete): Call it in place of _guix_complete_available_package
after the ‘build’ command.
2021-10-03 19:23:48 +02:00
Tobias Geerinckx-Rice
ee5e4779e2
bash completion: Complete ‘guix weather’ packages.
* etc/completion/bash/guix (_guix_complete): Complete available package
names for ‘guix weather’ when not following ‘-m’.
2021-10-03 19:23:48 +02:00
Tobias Geerinckx-Rice
17f76b209c
bash completion: Append to $COMPREPLY where possible.
_guix_complete is always called with a fresh empty array.

* etc/completion/bash/guix (_guix_complete_command)
(_guix_complete_subcommand, _guix_complete_installed_package)
(_guix_complete_option, _guix_complete_pid): Append to $COMPREPLY rather
than re-assigning.
2021-10-03 19:23:48 +02:00
Tobias Geerinckx-Rice
6fba67df19
bash completion: Consolidate similar $command ‘if’ branches.
* etc/completion/bash/guix (_guix_complete): Combine the ‘upgrade’ and
‘remove’ commands, as well as ‘download’, ‘gc’, and ‘hash’.
2021-10-03 19:23:48 +02:00
Tobias Geerinckx-Rice
e4ed0b3969
guix-install.sh: Don't swallow wget errors.
Using ‘-q’ suppresses *all* stderr output, including errors.

* etc/guix-install.sh (chk_gpg_keyring, guix_get_bin_list, guix_get_bin):
Substitute ‘--no-verbose’ for ‘-q’.

Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-09-29 16:56:40 +02:00
Florian Pelz
4687ee9cac
news: Adapt 'de' translation.
* etc/news.scm: Mention that Guix Home is a "technology preview".
2021-09-29 10:40:45 +02:00
Ludovic Courtès
62180be2ee
news: Mention that Home is a "technology preview".
* etc/news.scm: Mention that Home is a "technology preview".
2021-09-28 15:43:00 +02:00
Florian Pelz
1c1bfe681a
news: Add 'de' translation.
* etc/news.scm: Add German translation of Guix Home entry.
2021-09-27 23:47:53 +02:00
Oleg Pykhalov
6ae4644984
Merge branch 'wip-guix-home' 2021-09-27 17:27:12 +03:00
Andrew Tropin
a2b937984a
news: Add entry about Guix Home.
* etc/news.scm: Add entry.

Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
2021-09-27 17:27:02 +03:00
Florian Pelz
d96582f810
news: Add 'de' translation.
* etc/news.scm: Add German translation of 'guix graph -M' entry.
2021-09-23 08:51:48 +02:00