Commit graph

7988 commits

Author SHA1 Message Date
Alex Kost
26476d5852 emacs: Add help variables.
* emacs/guix-pcomplete.el (guix-pcomplete-parse-package-regexp,
  guix-pcomplete-parse-command-regexp,
  guix-pcomplete-parse-long-option-regexp,
  guix-pcomplete-parse-short-option-regexp,
  guix-pcomplete-parse-list-regexp, guix-pcomplete-parse-regexp-group,
  guix-pcomplete-systems, guix-pcomplete-hash-formats,
  guix-pcomplete-refresh-subsets, guix-pcomplete-key-policies): Move and
  rename to ...
* emacs/guix-help-vars.el (guix-help-parse-package-regexp,
  guix-help-parse-command-regexp, guix-help-parse-long-option-regexp,
  guix-help-parse-short-option-regexp, guix-help-parse-list-regexp,
  guix-help-parse-regexp-group, guix-help-system-types,
  guix-help-hash-formats, guix-help-refresh-subsets,
  guix-help-key-policies): ...here.  New file.
  (guix-help-parse-option-regexp, guix-help-source-types,
  guix-help-verify-options, guix-help-elpa-archives): New variables.
* emacs.am (ELFILES): Add "guix-help-vars.el".
2015-08-30 18:26:02 +03:00
Alex Kost
25a2839c9d emacs: Add 'guix-package-names'.
* emacs/guix-main.scm (package-names, package-names-lists): New procedures.
* emacs/guix-base.el (guix-package-names): New function.
2015-08-30 18:26:02 +03:00
Alex Kost
43b40c4b15 emacs: Add 'guix-graph-type-names'.
* emacs/guix-main.scm: Use (guix scripts graph) module.
  (graph-type-names): New procedure.
* emacs/guix-base.el (guix-graph-type-names): New function.
2015-08-30 18:26:02 +03:00
Alex Kost
c1a8c5ab1c guix graph: Export node types and <node-type> accessors.
* guix/scripts/graph.scm (%node-types, node-type, node-type?,
  node-type-identifier, node-type-label, node-type-edges,
  node-type-convert, node-type-name, node-type-description): Export.
2015-08-30 18:26:02 +03:00
Alex Kost
056b5ceffc emacs: Add 'guix-lint-checker-names'.
* emacs/guix-main.scm: Use (guix scripts lint) module.
  (lint-checker-names): New procedure.
* emacs/guix-base.el (guix-lint-checker-names): New function.
2015-08-30 18:26:02 +03:00
Alex Kost
521a11e0a6 guix lint: Export checkers and <lint-checker> accessors.
* guix/scripts/lint.scm (%checkers, lint-checker, lint-checker?,
  lint-checker-name, lint-checker-description, lint-checker-check):
  Export.
2015-08-30 18:26:01 +03:00
Alex Kost
6543601fa0 emacs: Add 'guix-memoized-defalias' macro.
* emacs/guix-utils.el (guix-memoized-defalias): New macro.
  (guix-memoized-font-lock-keywords): New variable.
2015-08-30 18:26:01 +03:00
Alex Kost
e767752c79 emacs: Add 'guix-any'.
* emacs/guix-utils.el (guix-any): New function.
2015-08-30 18:26:01 +03:00
Alex Kost
ad0f31f6a5 emacs: Add utils to copy guix command.
* emacs/guix-utils.el (guix-copy-as-kill, guix-copy-command-as-kill):
  New functions.
2015-08-30 18:26:01 +03:00
Alex Kost
009d6388e6 emacs: Add utils to make symbol and string for guix command.
* emacs/guix-utils.el (guix-shell-quote-argument, guix-command-symbol,
  guix-command-string): New functions.
2015-08-30 18:26:01 +03:00
Alex Kost
1ce96dd927 emacs: Add and use 'guix-concat-strings'.
* emacs/guix-utils.el (guix-concat-strings): New function.
* emacs/guix-pcomplete.el (guix-pcomplete-short-options): Use it.
* emacs/guix-base.el (guix-get-package-strings): Likewise.
2015-08-30 18:26:01 +03:00
Alex Kost
c10521e976 emacs: Add and use 'guix-while-search'.
* emacs/guix-utils.el (guix-while-search): New macro.
* emacs/guix-pcomplete.el (guix-pcomplete-run-guix-and-search): Use it.
* emacs/guix-prettify.el (guix-prettify-decompose-buffer): Likewise.
2015-08-30 18:26:01 +03:00
Alex Kost
935d079bb7 emacs: Add 'guix-prettify' to 'guix' custom group.
* emacs/guix-prettify.el (guix-prettify): Add 'guix' group.
2015-08-30 18:26:01 +03:00
Alex Kost
cc77415053 emacs: Remove leftover internal variable.
This is a followup to commit 74cc67372e.

* emacs/guix-base.el (guix-define-buffer-type): Remove 'mode-map'
  variable.
2015-08-30 18:26:01 +03:00
Ludovic Courtès
600233bdd2 gnu: clutter: Add "doc" output.
* gnu/packages/gnome.scm (clutter)[outputs]: New field.
  [arguments]: Pass --with-html-dir.
2015-08-30 12:14:44 +02:00
Ludovic Courtès
30dc88d975 gnu: Add libchamplain.
* gnu/packages/gnome.scm (libchamplain): New variable.
2015-08-30 12:14:32 +02:00
David Thompson
20c05ea94a gnu: Make ruby-diff-lcs a public package.
* gnu/packages/ruby.scm (ruby-diff-lcs-for-rspec): Rename this...
  (ruby-diff-lcs): ... to this, and export it.
  (ruby-rspec-expectation, ruby-rspec-mocks): Use new varaible.
2015-08-29 22:12:24 -04:00
Ludovic Courtès
532164194a download: Keep a single copy of the mirror file.
This saves ~10% on 'guix build inkscape -Sd'.

* guix/download.scm (%mirror-file): New variable.
  (url-fetch): Remove #:mirrors parameter.
  Remove 'mirror-file'; refer to '%mirror-file' instead.
2015-08-29 23:56:47 +02:00
Ludovic Courtès
b263651860 doc: Mention the "normalized codeset" used in locale names.
* doc/guix.texi (Locales): Introduce "codeset".
  <%default-locale-definitions>: Mention the "normalized codeset", with
  an xref to libc's manual.
* gnu/system/locale.scm (%default-locale-definitions)[utf8-locale]:
  Mention the "normalized codeset" in a comment.
2015-08-29 23:56:47 +02:00
Ludovic Courtès
3d20ebd6cb refresh: Add missing newline in warning message.
Reported by karhunkynsi on #guix.

* guix/scripts/refresh.scm (update-package): Add missing newline in
  string literal passed to 'warning'.
2015-08-29 23:56:47 +02:00
David Thompson
0bfdfd377e gnu: ruby-i18n: Update to 0.7.0.
* gnu/packages/ruby.scm (ruby-i18n): Update to 0.7.0.
2015-08-29 17:29:03 -04:00
Ricardo Wurmus
2d8781a491 gnu: mpv: Replace "jack-2" with "jack-1".
* gnu/packages/video.scm (mpv)[inputs]: Replace "jack-2" with "jack-1".
2015-08-29 21:45:54 +02:00
Ricardo Wurmus
0dc2e348dc gnu: gst-plugins-good: Replace "jack-2" with "jack-1".
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Replace "jack-2" with
  "jack-1".
2015-08-29 21:45:54 +02:00
Ricardo Wurmus
6a5894a823 gnu: audacity: Replace "jack-2" with "jack-1".
* gnu/packages/audacity.scm (audacity)[inputs]: Replace "jack-2" with
  "jack-1".
2015-08-29 21:45:54 +02:00
Ricardo Wurmus
01e327b556 gnu: rsound: Add file-name field to source origin.
* gnu/packages/audio.scm (rsound)[source]: Add 'file-name' field.
2015-08-29 21:45:54 +02:00
Ricardo Wurmus
276f49df73 gnu: rsound: Replace "jack-2" with "jack-1".
* gnu/packages/audio.scm (rsound)[inputs]: Replace "jack-2" with "jack-1".
2015-08-29 21:45:54 +02:00
宋文武
122d0d10c6 gnu: Add yelp-tools.
* gnu/packages/gnome.scm (yelp-tools): New variable.
2015-08-29 15:07:54 +08:00
宋文武
de3d612a52 gnu: Add yelp.
* gnu/packages/gnome.scm (yelp): New variable.
2015-08-29 15:07:54 +08:00
宋文武
c3b97bd902 gnu: Add yelp-xsl.
* gnu/packages/gnome.scm (yelp-xsl): New variable.
2015-08-29 15:07:54 +08:00
Ludovic Courtès
ced200328c download: Keep only 2 store items for all the downloads.
This significantly reduces churn in the store.  It also reduces run time
of 'guix build inkscape -Sd' by ~10%.

* guix/download.scm (url-fetch)[mirror-file]: New variable.
  [builder]: Get URL from the "guix download url" env. var.  Get the mirrors
  from MIRROR-FILE.  Pass #:script-name and #:env-vars to 'gexp->derivation'.
2015-08-29 01:22:54 +02:00
Ludovic Courtès
0309e1b0ba gexp: Add #:script-name parameter to 'gexp->derivation'.
* guix/gexp.scm (gexp->derivation): Add #:script-name parameter.
* doc/guix.texi (G-Expressions): Document it.
2015-08-29 01:22:54 +02:00
Ludovic Courtès
b6c6105cac monads: Inline the procedure returned by liftN.
* guix/monads.scm (define-lift): Turn into a macro that open-codes the result
  of its lift.
2015-08-29 01:22:54 +02:00
宋文武
ca2a55d46b gnu: shadow: Update to 4.2.1.
* gnu/packages/admin.scm (shadow): Update to 4.2.1.
  [source]: Use the release tarball.
2015-08-28 19:53:26 +08:00
Leo Famulari
cef644e627 gnu: Add abduco.
* gnu/packages/abduco.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2015-08-28 11:46:48 +02:00
Siniša Biđin
df1db7672d gnu: Add cabal-install.
* gnu/packages/haskell.scm (cabal-install): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2015-08-28 11:00:03 +02:00
Ludovic Courtès
7bce9fa5f3 gnu: conky: Fix license.
* gnu/packages/conky.scm (conky)[license]: Set to LICENSE:GPL3+.
2015-08-28 09:37:15 +02:00
David Thompson
58724c488b gnu: services: Add nginx-service.
* gnu/services/web.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
* guix.texi ("Web Services"): New section.
2015-08-27 22:10:40 -04:00
David Thompson
3aae8145a7 import: Add Ruby gem importer.
* gnu/scripts/import.scm (importers): Add "gem".
* gnu/import/gem.scm: New file.
* gnu/scripts/import/gem.scm: New file.
* Makefile.am (MODULES): Add them.
* guix.texi ("invoking guix import"): Document it.
2015-08-27 19:45:06 -04:00
David Thompson
140b304815 import: pypi: Move generally useful procedures to utils module.
* guix/import/pypi.scm (make-pypi-sexp): Factorize license to symbol
  conversion code.
  (string->license, snake-case, guix-hash-url): Move from here...
* guix/import/utils.scm: ... to here.
  (license->symbol): New procedure.
2015-08-27 18:02:35 -04:00
David Thompson
f8da3af086 gnu: Add ruby-arel.
* gnu/packages/ruby.scm (ruby-arel): New variable.
2015-08-27 18:02:35 -04:00
Siniša Biđin
555e436ea2 gnu: Add conky.
* gnu/packages/conky.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2015-08-27 23:34:24 +02:00
Siniša Biđin
6edb5b7765 gnu: lua: Add patch to generate pkg-config file.
* gnu/packages/patches/lua-pkgconfig.patch: New file.
* gnu/packages/lua.scm (lua)[source]: Add patch.
* gnu-system.am (dist_patch_DATA): Register patch.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2015-08-27 23:34:24 +02:00
Ludovic Courtès
25ae74cffa Thank Eric Hanchrow. 2015-08-27 23:34:23 +02:00
Alex Kost
f2638f0b37 emacs: Add completions for 'guix graph'.
* emacs/guix-pcomplete.el (guix-pcomplete-parse-linter-regexp): Improve
  and rename to ...
  (guix-pcomplete-parse-list-regexp): ...this.  New variable.
  (guix-pcomplete-lint-checkers): Use it.
  (guix-pcomplete-graph-types): New function.
  (guix-pcomplete-complete-command-arg): Complete package names for
  'guix graph' command.
  (guix-pcomplete-complete-option-arg): Complete '-t/--type' option.
2015-08-27 17:50:01 +03:00
Alex Kost
89949e8f54 gnu: git-modes: Update to 1.2.0.
* gnu/packages/emacs.scm (git-modes): Update to 1.2.0.
  [arguments]: Disable tests.
2015-08-27 17:16:31 +03:00
Alex Kost
be379ee77d gnu: magit-svn: Update to 2.1.0.
* gnu/packages/emacs.scm: Use (gnu packages base) module.  Remove
  duplicated (gnu packages guile) and (gnu packages linux) modules.
  (magit-svn): Update to 2.1.0.
  [source]: Use 'url-fetch' method.
  [inputs]: Remove.  Move "emacs" to 'native-inputs', move "magit" to
  'propagated-inputs'.
  [native-inputs]: Add "tar" and "gzip".
  [propagated-inputs]: Add "dash".
  [arguments]: Adjust builder for the new inputs and unpacking the source.
2015-08-27 17:16:30 +03:00
Alex Kost
55f29c39f5 gnu: magit: Update to 2.2.1.
* gnu/packages/emacs.scm (magit): Update to 2.2.1.
  [inputs]: Remove 'git:gui'.
  [propagated-inputs]: Add 'dash', remove 'git-modes'.
  [arguments]: Add PREFIX and DASH_DIR to 'make-flags'.  Remove
  'configure', 'augment-load-path' and 'post-install' phases.
2015-08-27 17:16:30 +03:00
Ludovic Courtès
ef80ca96fa daemon: Require a signature for imports made by root.
This reinstates commit aa0f8409, which was inadvertently undone in commit
322eeb87.

Running 'guix archive --import' as root would have let corrupt or unauthentic
store items through.

Reported by Eric Hanchrow <eric.hanchrow@gmail.com>
at <http://bugs.gnu.org/21354>.

* nix/nix-daemon/nix-daemon.cc (performOp) <wopImportPaths>: Pass true as the
  first argument to 'importPaths'.
2015-08-27 10:58:31 +02:00
Ludovic Courtès
54e515eb75 tests: Skip 'set-network-interface-address' test when running as root.
Reported by Eric Hanchrow <eric.hanchrow@gmail.com>
in <http://bugs.gnu.org/21354>.

* tests/syscalls.scm ("set-network-interface-address"): Skip when (getuid)
  returns zero.
2015-08-27 10:52:11 +02:00
Ludovic Courtès
d1f38287f4 Add graph.scm to 'POTFILES'.
* po/guix/POTFILES.in: Add guix/scripts/graph.scm.
2015-08-27 09:13:39 +02:00