aboutsummaryrefslogtreecommitdiff
path: root/guix
Commit message (Collapse)AuthorAge
* store: Add 'log-file' procedure.Ludovic Courtès2013-11-12
| | | | | | * guix/store.scm (log-file): New procedure. * tests/store.scm ("log-file, derivation", "log-file, output file name"): New tests.
* substitute-binary: Increase lookup concurrency to reduce latency.Ludovic Courtès2013-11-08
| | | | | | * guix/scripts/substitute-binary.scm (%lookup-threads): New variable. (guix-substitute-binary): Use 'n-par-map' instead of 'par-map' for batch 'lookup-narinfo' calls.
* packages: Add a 'snippet' field to <origin>.Ludovic Courtès2013-11-07
| | | | | | | | | | | | | | | | | * guix/packages.scm (<origin>): Add 'snippet', 'modules', and 'imported-modules' fields. (patch-and-repack): Make 'inputs' a keyword parameter. Add 'snippet', 'modules', and 'imported-modules' parameters. Accept SOURCE as a raw file name. Insert SNIPPET in BUILDER. Pass IMPORTED-MODULES to 'build-expression->derivation'. (package-source-derivation): Pass the extra arguments to 'patch-and-repack'. * tests/packages.scm ("package-source-derivation, snippet"): New test. * doc/guix.texi (Defining Packages): Mention the 'patches' and 'snippet' fields. (Invoking guix build): Tell that --source has patches and snippets applied. (Software Freedom): Mention packages that contain non-free code.
* ui: Make '--version' output GCS-compliant.Ludovic Courtès2013-11-03
| | | | | * guix/ui.scm (show-version-and-exit): Display copyright year, license, and LACK OF WARRANTY.
* guix package: Show the output name of what's being removed.Ludovic Courtès2013-11-01
| | | | | * guix/scripts/package.scm (show-what-to-remove/install): Show the output name of packages being removed.
* guix package: Fix indentation of "will be removed" messages.Ludovic Courtès2013-11-01
| | | | | * guix/scripts/package.scm (show-what-to-remove/install): Remove extra indentation from the removal sentences.
* guix package: Allow removal of a specific package output.Ludovic Courtès2013-11-01
| | | | | | | | | | | | | | | | | Fixes <http://bugs.gnu.org/15756>. * guix/profiles.scm (<manifest-pattern>): New record type. (remove-manifest-entry): Remove. (entry-predicate, manifest-matching-entries): New procedures. (manifest-remove): Accept a list of <manifest-pattern>. (manifest-installed?): Replace 'name' parameter by 'pattern', a <manifest-pattern>. * guix/scripts/package.scm (options->removable): Return a list of <manifest-pattern>. (guix-package)[process-action]: Use 'manifest-matching-entries' to compute the list of packages to remove. * tests/profiles.scm: New file. * Makefile.am (SCM_TESTS): Add it.
* guix package: Separate '--remove' option processing.Ludovic Courtès2013-11-01
| | | | | | * guix/scripts/package.scm (options->removable): New procedure. (guix-package)[process-actions]: Use it. Rename 'remove*' to 'remove' and 'install*' to 'install'.
* ui: Factorize package specification parsing.Ludovic Courtès2013-11-01
| | | | | | | * guix/ui.scm (package-specification->name+version+output): New procedure. * guix/scripts/package.scm (specification->package+output): Use it. * tests/ui.scm ("package-specification->name+version+output"): New test.
* Add (guix profiles).Ludovic Courtès2013-11-01
| | | | | | | | | | | | | | * guix/scripts/package.scm (show-what-to-remove/install): New procedure, moved from... (guix-package): ... here. (<manifest>, make-manifest, <manifest-entry>, profile-manifest, manifest->sexp, sexp->manifest, read-manifest, write-manifest, remove-manifest-entry, manifest-remove, manifest-installed?, manifest=?, profile-regexp, generation-numbers, previous-generation-number, profile-derivation, generation-number, generation-file-name, generation-time, lower-input): Move to... * guix/profiles.scm: ... here. New file. * Makefile.am (MODULES): Add it.
* union: Do not warn when identical files collide.Ludovic Courtès2013-10-31
| | | | | | * guix/build/union.scm (file=?): New procedure. (union-build)[resolve-collision]: Do not warn when identical files collide.
* guix package: Factorize generation file name computation.Ludovic Courtès2013-10-30
| | | | | | * guix/scripts/package.scm (generation-file-name): New procedure. Change all occurrences of (format #f "~a-~a-link" profile number) to use it.
* guix package: Specify inputs for each manifest entry.Ludovic Courtès2013-10-30
| | | | | | | | | | | | | | | | * guix/scripts/package.scm (<manifest-entry>): Add 'inputs' field. (manifest=?, lower-input): New procedure. (profile-derivation)[builder]: Add #:log-port argument to 'union-build'. [ensure-valid-input]: Remove. Add each entry's inputs to the input list. (options->installable): Return just the list of entries. [package->manifest-entry]: Set 'inputs' field. [canonicalize-deps]: Rename to... [deduplicate]: ... this. Remove input fiddling. (guix-package)[process-actions]: Use 'manifest=?' to compare the new and old manifests. Pass directly PROF-DRV to 'show-what-to-build'. Pass #:print-build-trace #f to 'set-build-options'.
* union: Make the log port a parameter.Ludovic Courtès2013-10-30
| | | | | * guix/build/union.scm (union-build): Add 'log-port' keyword parameter; use it.
* derivations: 'derivation-path->output-path' honors the 'output' parameter.Ludovic Courtès2013-10-30
| | | | | | * guix/derivations.scm (derivation-path->output-path): Pass OUTPUT. * tests/derivations.scm ("multiple-output derivation, derivation-path->output-path"): New test.
* guix package: Always use the term "profile", not "user environment".Ludovic Courtès2013-10-30
| | | | | | | * guix/scripts/package.scm (%user-environment-directory): Rename to... (%user-profile-directory): ... this. Update users accordingly. (profile-derivation): Use the term "profile" instead of "user environment", and use "profile" as the derivation name.
* guix package: Introduce <manifest> and <manifest-entry> types.Ludovic Courtès2013-10-30
| | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (<manifest>, <manifest-entry>): New record types. (make-manifest, read-manifest, manifest->sexp, sexp->manifest, read-manifest, write-manifest, remove-manifest-entry, manifest-remove, manifest-installed?): New procedures. (profile-derivation): Take a manifest as the second parameter. Use 'manifest->sexp'. Expect <manifest-entry> objects instead of "tuples". Adjust callers accordingly. (search-path-environment-variables): Changes 'packages' parameter to 'entries'. Rename 'package-in-manifest->package' to 'manifest-entry->package'; expect <manifest-entry> objects. (display-search-paths): Rename 'packages' to 'entries'. (options->installable): Change 'installed' to 'manifest'. Have 'canonicalize-deps' return name/path tuples instead of raw packages. Rename 'package->tuple' to 'package->manifest-entry'. Use <manifest-entry> objects instead of tuples. (guix-package)[process-actions]: Likewise. Rename 'packages' to 'entries'. [process-query]: Use 'manifest-entries' instead of 'manifest-packages'.
* guix package: Better separate option processing.Ludovic Courtès2013-10-30
| | | | | | | | | * guix/scripts/package.scm (find-package): Rename to... (specification->package+output): ... this. Rename 'name' parmameter to 'spec'. Return a package and output name instead of a tuple. (options->installable): New procedure (guix-package)[process-actions]: Use it, and remove corresponding code.
* guix package: Declutter the entry point.Ludovic Courtès2013-10-29
| | | | | | | * guix/scripts/package.scm (newest-available-packages, find-best-packages-by-name, find-package, upgradeable?): New procedures, moved from... (guix-package): ... here.
* build-system/{cmake,perl}: Don't use (guix build gnu-build-system).Ludovic Courtès2013-10-29
| | | | | | | | | Previously references to '%standard-phases' in builder-side code would refer to the wrong one. * guix/build-system/cmake.scm (cmake-build): Remove (guix build gnu-build-system) from the default MODULES value. * guix/build-system/perl.scm (perl-build): Likewise.
* records: define-record-type*: Field bindings are bound with 'let*'.Ludovic Courtès2013-10-15
| | | | | | | * guix/records.scm (define-record-type*): Wrap field bindings in a 'let*', not in a 'letrec*', which turned out to be pointlessly inconvenient. * tests/records.scm: Adjust test names accordingly.
* guix package: '--search' matches against package names.Ludovic Courtès2013-10-15
| | | | | * guix/scripts/package.scm (find-packages-by-description): Return packages whose name matches RX.
* pull: Compile modules correctly regardless of the compilation order.Ludovic Courtès2013-10-13
| | | | | * guix/scripts/pull.scm (unpack)[builder]: Work around <http://bugs.gnu.org/15602>.
* guix: Make cmake build system aware of usual paths.Andreas Enge2013-10-13
| | | | | * guix/build/cmake-build-system.scm (configure): Set CMAKE_LIBRARY_PATH to LIBRARY_PATH and CMAKE_INCLUDE_PATH to CPATH.
* pull: Simplify the builder.Ludovic Courtès2013-10-13
| | | | | * guix/scripts/pull.scm (unpack)[builder]: Use 'copy-recursively' and 'copy-file' instead of 'file-system-fold'.
* build-system/perl: Lazily resolve (gnu packages perl).Ludovic Courtès2013-10-12
| | | | | * guix/build-system/perl.scm (default-perl): New procedure. (perl-build): Use it.
* pull: Add '--url' option.Ludovic Courtès2013-10-12
| | | | | | * guix/scripts/pull.scm (%default-options): Add 'tarball-url' pair. (%options, show-help): Add '--url'. (guix-pull): Honor it.
* download: Support 'file://' URLs.Ludovic Courtès2013-10-12
| | | | | * guix/download.scm (download-to-store): When URL has a 'file' scheme or no scheme, use 'add-to-store' directly.
* guix: Add missing call to 'bindtextdomain'.Ludovic Courtès2013-10-12
| | | | | | | * scripts/guix.in (config-lookup): Add "localedir" entry. (run-guix-main): Add call to 'bindtextdomain'. * guix/ui.scm (initialize-guix): Use %GETTEXT-DOMAIN instead of a literal.
* gnu-maintenance: Adjust URL of package description file.Ludovic Courtès2013-10-11
| | | | | * guix/gnu-maintenance.scm (%package-description-url): Adjust to the new URL.
* snix: Prefer descriptions from the Womb rather than from Nixpkgs.Ludovic Courtès2013-10-09
| | | | | * guix/snix.scm (snix-derivation->guix-package): Use 'gnu-package-doc-description' as the description for GNU packages.
* gnu-maintenance: Get descriptions from 'gnumaint/pkgdescr.txt'.Ludovic Courtès2013-10-09
| | | | | | | | | | * guix/gnu-maintenance.scm (%gnumaint-base-url): New variable. (%package-list-url): Use it. (%gsrc-package-list-url): Remove. (%package-description-url): New variable. (official-gnu-packages): Change to use %PACKAGE-DESCRIPTION-URL instead of %GSRC-PACKAGE-LIST-URL. Adjust recutils field names accordingly.
* packages: Add 'patches' and related fields to <origin>.Ludovic Courtès2013-10-09
| | | | | | | | | | | | | See <https://lists.gnu.org/archive/html/guix-devel/2013-09/msg00137.html> for the rationale. * guix/packages.scm (<origin>)[patches, patch-flags, patch-inputs, patch-guile]: New fields. (%standard-patch-inputs, default-guile, patch-and-repack): New procedures. (package-source-derivation): When 'patches' is non-empty, call 'patch-and-repack'. * guix/utils.scm (file-sans-extension): New procedure.
* download: Add Debian mirrors.Ludovic Courtès2013-10-05
| | | | * guix/download.scm (%mirrors)[debian]: New set of mirrors.
* monads: Allow resolution of a monad's bind/return at expansion time.Ludovic Courtès2013-10-03
| | | | | | | | | * guix/monads.scm (<monad>): Turn in a raw SRFI-9 record type. (define-monad): New macro. (with-monad): Add a case for when MONAD is a macro. (identity-return, identity-bind, store-return, store-bind): Inline. (%identity-monad, %store-monad): Use 'define-monad'. * tests/monads.scm ("monad?"): New test.
* Add (guix monads).Ludovic Courtès2013-10-03
| | | | | | | | | * guix/monads.scm: New file. * tests/monads.scm: New file. * Makefile.am (MODULES): Add guix/monads.scm. (SCM_TESTS): Add tests/monads.scm. * doc/guix.texi (The Store Monad): New node. (The Store): Reference it.
* Merge branch 'core-updates'Ludovic Courtès2013-09-27
|\
| * Merge branch 'master' into core-updatesLudovic Courtès2013-09-26
| |\
| * \ Merge branch 'master' into core-updatesLudovic Courtès2013-09-23
| |\ \
| * | | utils: 'find-files' returns a sorted list.Ludovic Courtès2013-09-15
| | | | | | | | | | | | | | | | | | | | * guix/build/utils.scm (find-files): Sort the result lexicographically. * guix/scripts/pull.scm (unpack): Don't sort the result of 'find-files'.
* | | | guix package: '--delete-generations' deletes generations older than specified.Ludovic Courtès2013-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (matching-generations): Add 'duration-relation' keyword parameter. (guix-package)[process-action](delete-generations): Pass #:duration-relation >. * tests/guix-package.sh: Add test. * doc/guix.texi (Invoking guix package): Clarify the meaning of durations for '--list-durations' and '--delete-durations'.
* | | | build-system/trivial: Take the 'source' field into account.Ludovic Courtès2013-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/build-system/trivial.scm (trivial-build): When SOURCE is true, add it to INPUTS. (trivial-cross-build): Likewise. * tests/packages.scm ("trivial with source"): New test.
* | | | guix package: Add '--delete-generations'.Nikita Karetnikov2013-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (switch-to-previous-generation): New function. (roll-back): Use the new function instead of 'switch-link'. (show-help): Add '--delete-generations'. (%options): Likewise. (guix-package)[process-actions]: Add 'current-generation-number', 'display-and-delete', and 'delete-generation'. Add support for '--delete-generations', and reindent the code. * tests/guix-package.sh: Test '--delete-generations'. * doc/guix.texi (Invoking guix-package): Document '--delete-generations'.
* | | | guix package: Add 'link-to-empty-profile'.Nikita Karetnikov2013-09-26
| | | | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (link-to-empty-profile): New function. (roll-back): Use it.
* | | | guix package: Exit with 0 when there is nothing to list.Nikita Karetnikov2013-09-26
| |_|/ |/| | | | | | | | | | | * guix/scripts/package.scm (guix-package)[process-query]: Exit with 0 when there are no generations containing packages or no profiles.
* | | packages: Make the 'output' parameter of 'package-output' optional.Ludovic Courtès2013-09-25
| | | | | | | | | | | | | | | * guix/packages.scm (package-output): Make the 'output' parameter optional.
* | | guix package: Show which generation is the current one.Nikita Karetnikov2013-09-25
| | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (guix-package)[process-query]: Show that a generation is the current one if the profile points to it. * tests/guix-package.sh: Test it.
* | | guix package: Do not list the zeroth generation.Nikita Karetnikov2013-09-25
| | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (guix-package)[process-query]: Change 'list-generation' to not list the zeroth generation. * tests/guix-package.sh: Test it. * doc/guix.texi (Invoking guix package): Document it, and use the right term when talking about generations.
* | | guix package: Exit with 1 when a generation cannot be listed.Nikita Karetnikov2013-09-25
| |/ |/| | | | | | | | | | | * guix/scripts/package.scm (guix-package)[process-query]: Exit with 1 when a generation does not exist or the profile points to the zeroth generation. * tests/guix-package.sh: Test the former case.
* | nar: Fix file descriptor leak when writing a Nar.Ludovic Courtès2013-09-23
| | | | | | | | | | * guix/nar.scm (write-contents)[call-with-binary-input-file]: Always close PORT.