summaryrefslogtreecommitdiff
path: root/guix
AgeCommit message (Expand)Author
2013-10-03Add (guix monads)....* 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. Ludovic Courtès
2013-09-27Merge branch 'core-updates'Ludovic Courtès
2013-09-27guix package: '--delete-generations' deletes generations older than specified....* 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'. Ludovic Courtès
2013-09-27build-system/trivial: Take the 'source' field into account....* 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. Ludovic Courtès
2013-09-26guix package: Add '--delete-generations'....* 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'. Nikita Karetnikov
2013-09-26guix package: Add 'link-to-empty-profile'....* guix/scripts/package.scm (link-to-empty-profile): New function. (roll-back): Use it. Nikita Karetnikov
2013-09-26guix package: Exit with 0 when there is nothing to list....* guix/scripts/package.scm (guix-package)[process-query]: Exit with 0 when there are no generations containing packages or no profiles. Nikita Karetnikov
2013-09-26Merge branch 'master' into core-updatesLudovic Courtès
2013-09-25packages: Make the 'output' parameter of 'package-output' optional....* guix/packages.scm (package-output): Make the 'output' parameter optional. Ludovic Courtès
2013-09-25guix package: Show which generation is the current one....* 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. Nikita Karetnikov
2013-09-25guix package: Do not list the zeroth generation....* 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. Nikita Karetnikov
2013-09-25guix package: Exit with 1 when a generation cannot be listed....* 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. Nikita Karetnikov
2013-09-23Merge branch 'master' into core-updatesLudovic Courtès
2013-09-23nar: Fix file descriptor leak when writing a Nar....* guix/nar.scm (write-contents)[call-with-binary-input-file]: Always close PORT. Ludovic Courtès
2013-09-23guix package: Show most recently installed packages last....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'. Ludovic Courtès
2013-09-21guix package: Sort the list of generation numbers in '--list-generations'....* guix/scripts/package.scm (generation-numbers): Sort the result. Ludovic Courtès
2013-09-21guix package: Internationalize "Generation" string....* guix/scripts/package.scm (guix-package): Internationalize generation listing. Ludovic Courtès
2013-09-21pull: Adjust to 'derivation' API change....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. Ludovic Courtès
2013-09-19guix package: Add '--list-generations'....* 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'. Nikita Karetnikov
2013-09-18derivations: 'derivation' and related procedures return a single value....* 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. Ludovic Courtès
2013-09-18derivations: Add a nicer printer....* guix/derivations.scm (<derivation>): Add a printer. Ludovic Courtès
2013-09-17derivations: Keep the .drv file name in <derivation> objects....* 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. Ludovic Courtès
2013-09-15utils: 'find-files' returns a sorted list....* guix/build/utils.scm (find-files): Sort the result lexicographically. * guix/scripts/pull.scm (unpack): Don't sort the result of 'find-files'. Ludovic Courtès
2013-09-14Merge branch 'python'Andreas Enge
2013-09-13substitute-binary: Add '--help'....Reported by Nikita Karetnikov <nikita@karetnikov.org>. * guix/scripts/substitute-binary.scm (show-help): New procedure. (guix-substitute-binary): Add '--help'. Ludovic Courtès
2013-09-13guix package: Rename generation-related procedures....* 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'. Nikita Karetnikov
2013-09-11guix: python: Create module installation path and add it to PYTHONPATH during... 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. Andreas Enge
2013-09-11linux-initrd: Create /dev/klog and /dev/kmsg....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/klog and /dev/kmsg. Ludovic Courtès
2013-09-11store: The 'references' parameter of 'add-text-to-store' is now optional....* 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. Ludovic Courtès
2013-09-10guix: python: Do not import %standard-phases from gnu-build-system....* guix/build-system/python.scm (python-build): Drop module gnu-build-system. Thanks to Ludovic Courtès <ludo@gnu.org>. Andreas Enge
2013-09-10guix: python: Add parameter #:phases to build system....* guix/build-system/python.scm (python-build): Use parameter #:phases. Andreas Enge
2013-09-08guix: python: Add package-with-python2, a procedure rewriting a package... 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. Andreas Enge
2013-09-05guix: python: Add build phase and factor out calls to setup.py....* 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. Andreas Enge
2013-09-05gnu: python: Honour #:tests? and #:test-target in build system....* guix/build/python-build-system.scm (check): Use named parameters tests? and test-target (default now: "test" instead of "check"). Andreas Enge
2013-09-05gnu: linux-initrd: Fix creation of /dev/tty nodes....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/tty. Change from 'block-special' to 'char-special' for /dev/tty* nodes. Ludovic Courtès
2013-09-04guix: python: Switch to python-wrapper as the default version for the python... 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. Andreas Enge
2013-09-03pull: Compile files in the lexicographic order....* guix/scripts/pull.scm (unpack): Print the name of the file being compiled. Sort the names of files to compile. Ludovic Courtès
2013-09-03build-system/cmake: Fix typo....* guix/build-system/cmake.scm (default-cmake): Add missing quote. Ludovic Courtès
2013-09-03build-system/gnu: Delay resolution of (@ (gnu packages cmake) cmake)....* guix/build-system/cmake.scm (default-cmake): New procedure. (cmake-build): Use it. Ludovic Courtès
2013-09-02substitute-binary: Show the Nar size, when available....* guix/scripts/substitute-binary.scm (guix-substitute-binary)["--substitute"]: Show the Nar size, when available. * guix/ui.scm (show-what-to-build): Add 'TODO'. Ludovic Courtès
2013-09-02union: Don't traverse sub-directories only found in one element of the union....This significantly reduces I/O when building profiles, especially with lots of package-specific sub-directories (such as 'share/emacs/24.3', 'texmf', etc.) * guix/build/union.scm (union-build)[file-tree](others-have-it?): New procedure. Use it in the 'enter?' parameter of 'file-system-fold'; change 'skip' parameter accordingly. * tests/union.scm ("union-build"): Ensure that 'include' is a symlink and 'bin' is a directory. Ludovic Courtès
2013-09-02store: Add a printer for <nix-server>....* guix/store.scm (<nix-server>): Set a printer. Ludovic Courtès
2013-09-02gnu: linux-initrd: Factorize device node creation....* guix/build/linux-initrd.scm (make-essential-device-nodes): New procedure. * gnu/packages/linux-initrd.scm (qemu-initrd): Use it. Ludovic Courtès
2013-08-31gnu: linux-initrd: Make Guile modules accessible in the chroot....* gnu/packages/linux-initrd.scm (qemu-initrd): Add (guix build utils) to #:modules, and use it. Copy .scm and .go files to /root. * guix/build/linux-initrd.scm (bind-mount): New procedure. Ludovic Courtès
2013-08-29gnu: linux-initrd: Add (guix build linux-initrd) and use it....* gnu/packages/linux-initrd.scm (qemu-initrd): Add #:modules argument. Factorize and move some of the code to... * guix/build/linux-initrd.scm: ... here. New file. * Makefile.am (MODULES): Add it. Ludovic Courtès
2013-08-29gnu: linux-initrd: Allow Guile modules to be embedded in the initrd....* gnu/packages/linux-initrd.scm (raw-build-system): New macro. (module-package, compiled-module-package): New procedures. (expression->initrd): Add `modules' keyword parameter. Add "modules" and "modules/compiled" inputs; copy them onto the initrd. * guix/derivations.scm (imported-modules, compiled-modules): Publicize. Ludovic Courtès
2013-08-28derivations: Rename #:dependency-graphs to #:references-graphs....* guix/derivations.scm (derivation, build-expression->derivation): Rename #:dependency-graphs to #:references-graphs, for consistency in the terminology. * tests/derivations.scm: Adjust accordingly. Ludovic Courtès
2013-08-26derivations: Add #:dependency-graphs to `build-expression->derivation'....* guix/derivations.scm (build-expression->derivation): Add #:dependency-graphs keyword argument. Pass it to `derivation'. * tests/derivations.scm ("build-expression->derivation with #:dependency-graphs"): New test. * doc/guix.texi (Derivations): Update `build-expression->derivation' description. Ludovic Courtès
2013-08-26derivations: Add #:dependency-graphs `derivation' parameter....* guix/derivations.scm (derivation): Add `dependency-graphs' keyword parameter; honor it. * tests/derivations.scm (bootstrap-binary): New procedure. (%bash): Use it. (%mkdir): New variable. (directory-contents): Add `slurp' optional parameter. ("derivation with #:dependency-graphs"): New test. * doc/guix.texi (Derivations): Update accordingly. Ludovic Courtès
2013-08-26derivations: Move 3 positional parameters into keyword parameters....* guix/derivations.scm (derivation): Turn `system', `env-vars', and `inputs' into keyword parameters. (build-expression->derivation): Adjust accordingly. * gnu/packages/bootstrap.scm (%bootstrap-guile): Likewise. * tests/derivations.scm, tests/store.scm: Likewise. * doc/guix.texi (Derivations): Likewise. Ludovic Courtès