~ruther/guix-local

ref: e46e9573855d5ee4f71db0ce77159bbc636330c1 guix-local/guix/scripts d---------
9d438563 — Mark H Weaver 9 years ago
Merge branch 'master' into core-updates
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'.
5bace4c8 — Marius Bakke 9 years ago
Merge branch 'master' into core-updates

Conflicts:
* gnu/packages/tls.scm (gnutls): Incorporated 3.5.13 graft (88e2511e217f2).
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.
9f825cec — Leo Famulari 9 years ago
Merge branch 'master' into core-updates
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.
d0c45d2d — Marius Bakke 9 years ago
Merge branch 'master' into core-updates

 Conflicts:
	gnu/packages/image.scm
        (incorporated libtiff graft)
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.
38f1163c — Leo Famulari 9 years ago
Merge branch 'master' into core-updates
36747eb0 — Marius Bakke 9 years ago
Merge branch 'master' into staging
d1a91408 — Ricardo Wurmus 9 years ago
Merge branch 'master' into core-updates
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.
Next