summaryrefslogtreecommitdiff
path: root/guix
Commit message (Collapse)AuthorAge
* 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.
* | guix package: Show most recently installed packages last.Ludovic Courtès2013-09-23
| | | | | | | | | | | | | | | | | | Suggested by Andreas Enge <andreas@enge.fr>. * guix/scripts/package.scm (guix-package)[list-generations, list-installed]: Reverse the result of 'manifest-packages'. * doc/guix.texi (Invoking guix package): Document the order of packages for '--list-generations' and '--list-installed'.
* | guix package: Sort the list of generation numbers in '--list-generations'.Ludovic Courtès2013-09-21
| | | | | | | | * guix/scripts/package.scm (generation-numbers): Sort the result.
* | guix package: Internationalize "Generation" string.Ludovic Courtès2013-09-21
| | | | | | | | | | * guix/scripts/package.scm (guix-package): Internationalize generation listing.
* | pull: Adjust to 'derivation' API change.Ludovic Courtès2013-09-21
| | | | | | | | | | | | | | Fixes <http://bugs.gnu.org/15428>. Reported by Cyrill Schenkel <cyrill.schenkel@gmail.com>. * guix/scripts/pull.scm (guix-pull): 'unpack' returns a single value.
* | guix package: Add '--list-generations'.Nikita Karetnikov2013-09-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/package.scm: Import (srfi srfi-19). (generation-time, matching-generations): New functions. (show-help): Add '--list-generations'. (%options): Likewise. (guix-package)[process-query]: Add support for '--list-generations'. * guix/ui.scm: Import (srfi srfi-19) and (ice-9 regex). (string->generations, string->duration): New functions. * tests/guix-package.sh: Test '--list-generations'. * tests/ui.scm: Import (srfi srfi-19). Test 'string->generations' and 'string->duration'. * doc/guix.texi (Invoking guix-package): Document '--list-generations'.
* | derivations: 'derivation' and related procedures return a single value.Ludovic Courtès2013-09-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/derivations.scm (derivation->output-path, derivation->output-paths): New procedures. (derivation-path->output-path): Use 'derivation->output-path'. (derivation-path->output-paths): Use 'derivation->output-paths'. (derivation): Accept 'derivation?' objects as inputs. Return a single value. (build-derivations): New procedure. (compiled-modules): Use 'derivation->output-paths'. (build-expression->derivation)[source-path]: Add case for when the input matches 'derivation?'. [prologue]: Accept 'derivation?' objects in INPUTS. [mod-dir, go-dir]: Use 'derivation->output-path'. * guix/download.scm (url-fetch): Adjust to the single-value return. * guix/packages.scm (package-output): Use 'derivation->output-path'. * guix/scripts/build.scm (guix-build): When the argument is 'derivation-path?', pass it through 'read-derivation'. Use 'derivation-file-name' to print out the .drv file names, and to register them. Use 'derivation->output-path' instead of 'derivation-path->output-path'. * guix/scripts/package.scm (roll-back): Adjust to the single-value return. (guix-package): Use 'derivation->output-path'. * guix/ui.scm (show-what-to-build): Adjust to deal with 'derivation?' objects instead of .drv file names. * gnu/system/grub.scm (grub-configuration-file): Use 'derivation->output-path' instead of 'derivation-path->output-path'. * gnu/system/vm.scm (qemu-image, system-qemu-image): Likewise. * tests/builders.scm, tests/derivations.scm, tests/packages.scm, tests/store.scm, tests/union.scm: Adjust to the new calling convention. * doc/guix.texi (Defining Packages, The Store, Derivations): Adjust accordingly.
* | derivations: Add a nicer printer.Ludovic Courtès2013-09-18
| | | | | | | | * guix/derivations.scm (<derivation>): Add a printer.
* | derivations: Keep the .drv file name in <derivation> objects.Ludovic Courtès2013-09-17
| | | | | | | | | | | | | | | | | | * guix/derivations.scm (<derivation>): Add 'file-name' field. (%read-derivation): Use (port-filename DRV-PORT) as the file name for the result. (derivation): Set the 'file-name' field in the result. * tests/derivations.scm ("build derivation with 1 source"): Assert that 'derivation-file-name' returns the right thing.
* | Merge branch 'python'Andreas Enge2013-09-14
|\ \
| * | guix: python: Create module installation path and add it to PYTHONPATH duringAndreas Enge2013-09-11
| | | | | | | | | | | | | | | | | | | | | | | | the installation phase. * guix/build/python-build-system.scm (get-python-version): New procedure. * guix/build/python-build-system.scm (install): Create and add path. * gnu/packages/python.scm (python-setuptools): Drop path creation code.
| * | guix: python: Do not import %standard-phases from gnu-build-system.Andreas Enge2013-09-10
| | | | | | | | | | | | | | | * guix/build-system/python.scm (python-build): Drop module gnu-build-system. Thanks to Ludovic Courtès <ludo@gnu.org>.
| * | guix: python: Add parameter #:phases to build system.Andreas Enge2013-09-10
| | | | | | | | | | | | * guix/build-system/python.scm (python-build): Use parameter #:phases.
| * | guix: python: Add package-with-python2, a procedure rewriting a packageAndreas Enge2013-09-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | to compile with Python 2 instead of the default Python 3. * guix/build-system/python.scm (default-python2, package-with-explicit-python, package-with-python2): New procedures. * guix/build-system/python.scm (python2-pytz, python2-babel): Use package-with-python2.
| * | guix: python: Add build phase and factor out calls to setup.py.Andreas Enge2013-09-05
| | | | | | | | | | | | | | | | | | | | | * guix/build/python-build-system.scm (call-setuppy): New procedure. * guix/build/python-build-system.scm (build): New procedure. * guix/build/python-build-system.scm (check, install): Use call-setuppy. * guix/build/python-build-system.scm (%standard-phases): Add call to build.
| * | gnu: python: Honour #:tests? and #:test-target in build system.Andreas Enge2013-09-05
| | | | | | | | | | | | | | | * guix/build/python-build-system.scm (check): Use named parameters tests? and test-target (default now: "test" instead of "check").
| * | guix: python: Switch to python-wrapper as the default version for the pythonAndreas Enge2013-09-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | build system (switches to Python 3) and compute python-version instead of passing it as a parameter. * guix/build-system/python.scm (default-python): Switch to python-wrapper. * guix/build-system/python.scm (python-build): Drop parameter #:python-version. * guix/build/python-build-system.scm (wrap): Compute python version from input.
* | | substitute-binary: Add '--help'.Ludovic Courtès2013-09-13
| | | | | | | | | | | | | | | | | | | | | Reported by Nikita Karetnikov <nikita@karetnikov.org>. * guix/scripts/substitute-binary.scm (show-help): New procedure. (guix-substitute-binary): Add '--help'.
* | | guix package: Rename generation-related procedures.Nikita Karetnikov2013-09-13
| | | | | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (profile-numbers): Rename to 'generation-numbers'. (previous-profile-number): Rename to 'previous-generation-number'. (profile-number): Rename to 'generation-number'. (roll-back): Rename 'previous-profile' to 'previous-generation'.
* | | linux-initrd: Create /dev/klog and /dev/kmsg.Ludovic Courtès2013-09-11
| | | | | | | | | | | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/klog and /dev/kmsg.
* | | store: The 'references' parameter of 'add-text-to-store' is now optional.Ludovic Courtès2013-09-11
| |/ |/| | | | | | | | | | | * guix/store.scm (add-text-to-store): Make 'references' optional. * tests/store.scm ("dead-paths", "references"): Use 'add-text-to-store' with no optional argument. * doc/guix.texi (The Store): Adjust accordingly.