~ruther/guix-local

ref: c4fd86f9c1efdb6b413dd6b7a00f03a5f9558b8d guix-local/guix/scripts d---------
afbc9419 — Ricardo Wurmus 9 years ago
guix: Add texlive importer.

* guix/import/texlive.scm: New file.
* guix/scripts/import/texlive.scm: New file.
* Makefile.am (MODULES): Add them.
* tests/texlive.scm: New file.
* Makefile.am (SCM_TESTS): Add it.
* guix/scripts/import.scm (importers): Add texlive importer.
* doc/guix.texi (Invoking guix import): Document it.
4e863eb3 — Ludovic Courtès 9 years ago
guix package: '--search' sorts by relevance.

* guix/scripts/package.scm (find-packages-by-description): Rewrite to
compute a score based on the number of regexps matched and the number of
matches for each regexp.  Sort according to this score and return it as
a second value.
(process-query) <'search>: Capture the two return values of
'find-packages-by-description'.  Pass #:extra-fields to
'package->recutils'.
* doc/guix.texi (Invoking guix package): Mention relevance, give an
example.
015f17e8 — Ludovic Courtès 9 years ago
derivations: Introduce 'read-derivation-from-file'.

This avoids the open/fstat/close syscalls upon a cache hit that we had
with the previous idiom:

  (call-with-input-file file read-derivation)

where caching happened in 'read-derivation' itself.

* guix/derivations.scm (%read-derivation): Rename to...
(read-derivation): ... this.
(read-derivation-from-file): New procedure.
(derivation-prerequisites, substitution-oracle)
(derivation-prerequisites-to-build):
(derivation-path->output-path, derivation-path->output-paths):
(derivation-path->base16-hash, map-derivation): Use
'read-derivation-from-file' instead of (call-with-input-file …
read-derivation).
* guix/grafts.scm (item->deriver): Likewise.
* guix/scripts/build.scm (log-url, options->things-to-build): Likewise.
* guix/scripts/graph.scm (file->derivation): Remove.
(derivation-dependencies, %derivation-node-type): Use
'read-derivation-from-file' instead.
* guix/scripts/offload.scm (guix-offload): Likewise.
* guix/scripts/perform-download.scm (guix-perform-download): Likewise.
* guix/scripts/publish.scm (load-derivation): Remove.
(narinfo-string): Use 'read-derivation-from-file'.
f96752e3 — Mathieu Othacehe 9 years ago
bootloader: Rename boot-name to bootloader-name.

* gnu/system (<boot-parameters>)[boot-name]: Rename field to...
[bootloader-name]: ... this.  Adjust users.
* gnu/scripts/system.scm: Adjust accordingly.
1335ac31 — Mathieu Othacehe 9 years ago
scripts: refresh: Add -m manifest option.

* guix/scripts/refresh.scm (%options): Add -m option,
(show-help): document it,
(packages-from-manifest): new procedure,
(guix-refresh): use packages from manifest if specified, otherwise
keep the previous behaviour.
* doc/guix.texi (Invoking guix refresh): document new option.
36a9d3f1 — Ludovic Courtès 9 years ago
substitute: Do not display the installed size.

* guix/scripts/substitute.scm (process-substitution): Do not show the
installed size in the "Downloading" message.
65f224dc — Ludovic Courtès 9 years ago
syscalls: Provide 'free-disk-space'.

* guix/build/syscalls.scm (free-disk-space): New procedure.
* guix/scripts/gc.scm (guix-gc)[ensure-free-space]: Use it instead of
'statfs'.
6f8cda18 — Marius Bakke 9 years ago
Merge branch 'master' into staging
8902d0f2 — Ludovic Courtès 9 years ago
scripts: Set thread names.

This allows 'guix publish' threads as well as 'guix substitute' and
'guix offload' processes to be properly labeled in 'top', 'pstree', etc.

* guix/workers.scm (worker-thunk): Add #:thread-name parameter and honor it.
(make-pool): Likewise.
* guix/scripts/publish.scm (http-write): Add calls to 'set-thread-name'
in bodies of 'call-with-new-thread'.
(guix-publish): Call 'set-thread-name'.   Pass #:thread-name to 'make-pool'.
* guix/scripts/offload.scm (guix-offload): Call 'set-thread-name'.
* guix/scripts/substitute.scm (guix-substitute): Likewise.
36747eb0 — Marius Bakke 9 years ago
Merge branch 'master' into staging
73739735 — Ludovic Courtès 9 years ago
publish: Do not bake the same item several times.

Before this patch, there was a possibility that we'd queue several
baking tasks for the same item.  The first one would bake the item but
subsequent tasks wouldn't check whether the item had been baked in the
meantime and would re-bake it.

* guix/scripts/publish.scm (render-narinfo/cached): Don't call
'bake-narinfo+nar' when (file-exists? cached).
807ba519 — Ludovic Courtès 9 years ago
guix package: Swallow EPIPE upon 'guix package --list-generations'.

Fixes <http://bugs.gnu.org/27017>.
Reported by Alex Vong <alexvong1995@gmail.com>.

* guix/scripts/package.scm (process-query) <'list-generations>: Wrap
body in 'leave-on-EPIPE'.
5ae59eb6 — Arun Isaac 9 years ago
guix: lint: Slightly simplify `check-source-file-name'.

* guix/scripts/lint.scm (check-source-file-name): Implement file name matching
  with regular expression.
ad25e996 — Arun Isaac 9 years ago
gnu: lint: Fix typo.

* guix/scripts/lint.scm (check-source-file-name): Fix wrong return value in
  docstring.
fd3782d1 — Marius Bakke 9 years ago
Merge branch 'version-0.13.0'
e4cddbbc — Marius Bakke 9 years ago
Merge branch 'master' into staging
8a29dc07 — Ludovic Courtès 9 years ago
guix system: Don't warn about old distros for "guix system init".

* guix/scripts/system.scm (process-action): Don't call
'warn-about-old-distro' when ACTION is 'init' or 'build'.
092c58e7 — Ludovic Courtès 9 years ago
guix system: Increase image size for 'guix system vm'.

This is a followup to 9a1bfe764859365b6726f168da95b88a2d22403b.

* guix/scripts/system.scm (system-derivation-for-action): Add 40MiB to
the default size for 'vm'.
96afb480 — Ludovic Courtès 9 years ago
pack: Use 'guile2.0-json' when building with Guile 2.0.

Fixes <http://bugs.gnu.org/27005>.
Reported by Pjotr Prins <pjotr.public12@thebird.nl>.

Fixes a regression introduced in commit
2252f087d4bd450ab41a71379320467887edfc0f.

* guix/scripts/pack.scm (docker-image)[json]: New variable.
[build]: Use it.
d6bf931c — Ludovic Courtès 9 years ago
pack: Use 'guile2.0-json' when building with Guile 2.0.

Fixes <http://bugs.gnu.org/27005>.
Reported by Pjotr Prins <pjotr.public12@thebird.nl>.

Fixes a regression introduced in commit
2252f087d4bd450ab41a71379320467887edfc0f.

* guix/scripts/pack.scm (docker-image)[json]: New variable.
[build]: Use it.
Next