Skip to content
Snippets Groups Projects
  1. Mar 10, 2014
  2. Mar 09, 2014
  3. Mar 07, 2014
    • Ludovic Courtès's avatar
      doc: Explain what's special about the (gnu packages ...) name space. · e7f34eb0
      Ludovic Courtès authored
      * doc/guix.texi (Invoking guix package): Explain where packages are
        searched for and link to "Package Modules".
        (Defining Packages) <example>: Use 'define-module' clause instead of
        'use-modules'.  Explain why and link to "Package Modules".
        (Invoking guix build): Explain where packages aer searched for and
        link to "Package Modules".
        (Package Modules): Explain that (gnu packages ...) is scanned.
      e7f34eb0
  4. Mar 02, 2014
    • Ludovic Courtès's avatar
      doc: Factorize documentation of common build options. · 70ee5642
      Ludovic Courtès authored
      * doc/guix.texi (Invoking guix package): Remove documentation for
        --dry-run, --fallback, --no-substitutes, and --max-silent-time.  Add a
        cross-ref to "Invoking guix build".
        (Invoking guix archive): Add "common build options" as the cross-ref
        topic for "Invoking guix build".
        (Invoking guix build): Move common build options separately.  Add a
        paragraph to explain.
      70ee5642
  5. Feb 21, 2014
    • Ludovic Courtès's avatar
      derivations: Remove unused 'derivation' parameter. · 2096ef47
      Ludovic Courtès authored
      * guix/derivations.scm (derivation): Remove unused #:hash-mode parameter.
      * doc/guix.texi (Derivations): Adjust accordingly.
      2096ef47
    • Ludovic Courtès's avatar
      doc: More on what's special about the archive format. · 0dbd88db
      Ludovic Courtès authored
      * doc/guix.texi (Invoking guix archive): Expound on what sets the Nar
        format apart.
      0dbd88db
    • Ludovic Courtès's avatar
      derivations: Add support for recursive fixed-output derivations. · 36bbbbd1
      Ludovic Courtès authored
      * guix/derivations.scm (<derivation-output>): Add 'recursive?' field.
        Adjust 'make-derivation-output' callers.
        (%read-derivation) <fixed-output>: When HASH-ALGO starts with 'r:',
        set the 'recursive?' field and drop 'r:' from the hash algo name.
        (write-derivation)[write-output]: Write the algo as 'r:HASH-ALGO' when
        the RECURSIVE? field is set.
        (derivation-hash) <fixed-output>: Prepend "r:" when RECURSIVE? is set.
        (fixed-output-path): New procedure.
        (derivation): Add #:recursive? parameter.  Use 'fixed-output-path' to
        compute the output file name of a fixed output derivation.
        (build-expression->derivation): Add #:recursive? parameter.  Pass it
        to 'derivation'.
      * tests/derivations.scm ("fixed-output derivation, recursive",
        "build-expression->derivation produces recursive fixed-output",
        "build-expression->derivation uses recursive fixed-output"): New
        tests.
      * doc/guix.texi (Derivations): Document #:recursive? for 'derivation'.
        Add #:recursive? for 'build-expression->derivation'.
      36bbbbd1
    • Ludovic Courtès's avatar
      guix hash: Add '--recursive'. · 3140f2df
      Ludovic Courtès authored
      * guix/scripts/hash.scm (show-help): Add --recursive.
        (%options): Likewise.
        (guix-hash)[file-hash]: New procedure.  Honor --recursive.
        Use it.
      * guix/nar.scm (write-file): Add missing field to the &nar-error
        condition raised upon unsupported file type; change its message to be
        more descriptive.
      * tests/guix-hash.sh: Add tests with -r.
      * doc/guix.texi (Invoking guix hash): Document --recursive.
      3140f2df
  6. Feb 19, 2014
    • Ludovic Courtès's avatar
      gnu: Define '%base-services'. · 8b198abe
      Ludovic Courtès authored
      * gnu/services/base.scm (%base-services): New variable.
      * gnu/system.scm (<operating-system>)[services]: Change the default
        value to %BASE-SERVICES.
      * doc/guix.texi (Using the Configuration System): Change
        '%standard-services' to '%base-services'.
      8b198abe
    • Ludovic Courtès's avatar
      gnu: Introduce the (gnu services ...) modules. · db4fdc04
      Ludovic Courtès authored
      * gnu/system/dmd.scm: Remove file.  Move contents to...
      * gnu/services.scm, gnu/services/base.scm, gnu/services/dmd.scm,
        gnu/services/networking.scm, gnu/services/xorg.scm: ... here.  New
        files.
      * gnu/system.scm, gnu/system/vm.scm: Adjust accordingly.
      * guix/scripts/system.scm (%user-module): Likewise.
      * doc/guix.texi (Using the Configuration System): Likewise.
        (Defining Services): Likewise.
      db4fdc04
  7. Feb 18, 2014
    • Ludovic Courtès's avatar
      Add 'guix system'. · 523e4896
      Ludovic Courtès authored
      * guix/scripts/system.scm: New file.
      * Makefile.am (MODULES): Add it.
      * po/POTFILES.in: Likewise.
      * doc/guix.texi (Using the Configuration System): Link to "Invoking guix
        system".
        (Invoking guix system): New node.
      523e4896
  8. Feb 06, 2014
    • Ludovic Courtès's avatar
      daemon: Add '--gc-keep-outputs' and '--gc-keep-derivations'. · 6e37066e
      Ludovic Courtès authored
      * nix/nix-daemon/guix-daemon.cc (GUIX_OPT_GC_KEEP_OUTPUTS,
        GUIX_OPT_GC_KEEP_DERIVATIONS): New macros.
        (options): Add 'gc-keep-outputs' and 'gc-keep-derivations'.
        (string_to_bool): New function.
        (parse_opt): Honor GUIX_OPT_GC_KEEP_DERIVATIONS and
        GUIX_OPT_GC_KEEP_OUTPUTS.
      * doc/guix.texi (Invoking guix-daemon): Document --gc-keep-outputs and
        --gc-keep-derivations.
      6e37066e
  9. Feb 03, 2014
    • Ludovic Courtès's avatar
      monads: Add 'text-file*'. · 45adbd62
      Ludovic Courtès authored
      * guix/monads.scm (text-file*): New procedure.
      * tests/monads.scm ("text-file*"): New test.
      * doc/guix.texi (The Store Monad): Change example since the previous one
        would erroneously fail to retain a reference to Coreutils.  Document
        'text-file*'.
      45adbd62
  10. Jan 25, 2014
    • Ludovic Courtès's avatar
      derivations: Add #:local-build? parameter for derivations. · 1909431c
      Ludovic Courtès authored
      * guix/derivations.scm (derivation): Add #:local-build? parameter and
        honor it.
        (build-expression->derivation): Likewise.
      * doc/guix.texi (Derivations): Update documentation of these
        procedures.
      1909431c
    • Ludovic Courtès's avatar
      doc: More about offloading. · 4ec2e92d
      Ludovic Courtès authored
      * doc/guix.texi (Daemon Offload Setup): Start with "When desired".  Say
        more on what can go in 'machines.scm', and mention Guile-Avahi.
        (Invoking guix-daemon): Document '--no-build-hook'.
        (Invoking guix build): Add xref to "Daemon Offload Setup".
      4ec2e92d
  11. Jan 23, 2014
    • Ludovic Courtès's avatar
      Add 'guix offload' as a daemon build hook. · 49e6291a
      Ludovic Courtès authored
      * nix/nix-daemon/guix-daemon.cc (GUIX_OPT_NO_BUILD_HOOK): New macro.
        (options): Add '--no-build-hook'.
        (parse_opt): Handle it.
        (main)[HAVE_DAEMON_OFFLOAD_HOOK]: Set 'useBuildHook' by default.
        Set $NIX_BUILD_HOOK to our offload hook unless otherwise specified.
        [!HAVE_DAEMON_OFFLOAD_HOOK]: Clear 'useBuildHook'.
      * pre-inst-env.in: Set and export NIX_BUILD_HOOK.
      * nix/scripts/offload.in, guix/scripts/offload.scm: New files.
      * guix/ui.scm (show-guix-help)[internal?]: Add "offload".
      * config-daemon.ac: Call 'GUIX_CHECK_UNBUFFERED_CBIP'.
        Instantiate 'nix/scripts/offload'.  Set 'BUILD_DAEMON_OFFLOAD'
        conditional, and optionally define 'HAVE_DEAMON_OFFLOAD_HOOK' cpp
        macro.
      * daemon.am (nodist_pkglibexec_SCRIPTS)[BUILD_DAEMON_OFFLOAD]: Add it.
      * Makefile.am (MODULES)[BUILD_DAEMON_OFFLOAD]: Add
        'guix/scripts/offload.scm'.
        (EXTRA_DIST)[!BUILD_DAEMON_OFFLOAD]: Likewise.
      * m4/guix.m4 (GUIX_CHECK_UNBUFFERED_CBIP): New macro.
      * doc/guix.texi (Setting Up the Daemon): Move most of the body to...
        (Build Environment Setup): ... this.  New subsection.
        (Daemon Offload Setup): New subsection.
      49e6291a
  12. Jan 18, 2014
    • Ludovic Courtès's avatar
      doc: List what's in the chroot. · 6dc99317
      Ludovic Courtès authored
      * doc/guix.texi (Setting Up the Daemon): List what's in the chroot.
      6dc99317
    • Ludovic Courtès's avatar
      Update 'nix-upstream' sub-module; adjust build system, doc, and substituter. · d43eb499
      Ludovic Courtès authored
      * nix-upstream: Update sub-module.
      * daemon.am (libutil_a_SOURCES): Add affinity.cc.
        (libutil_headers): Add affinity.hh.
        (libexec_PROGRAMS, nix_setuid_helper_SOURCES,
        nix_setuid_helper_CPPFLAGS, nix_setuid_helper_LDADD): Remove.
      * doc/guix.texi (Setting Up the Daemon): Remove paragraph about
        'nix-setuid-helper'.
      * guix/scripts/substitute-binary.scm (guix-substitute-binary): Exit 0 when
        %CACHE-URL has an HTTP scheme and looking up its host fails.
        Always print a newline to stdout when starting.
      d43eb499
  13. Jan 17, 2014
  14. Jan 14, 2014
  15. Jan 06, 2014
    • Ludovic Courtès's avatar
      archive: Add '--missing'. · 87236aed
      Ludovic Courtès authored
      * guix/scripts/archive.scm (show-help, %options): Add '--missing'.
        (guix-archive)[lines]: New procedure.
        Use it to honor '--missing'.
      * tests/guix-archive.sh: Add tests.
      * doc/guix.texi (Invoking guix archive): Document '--missing'.
      87236aed
  16. Jan 05, 2014
    • Ludovic Courtès's avatar
      guix build: Add '--no-build-hook'. · 425b0bfc
      Ludovic Courtès authored
      * guix/scripts/build.scm (%default-options): Add 'build-hook?' pair.
        (show-help, %options): Add --no-build-hook.
        (guix-build): Pass the 'build-hook?' value to 'set-build-options'.
      * doc/guix.texi (Invoking guix build): Document '--no-build-hook'.
      425b0bfc
  17. Dec 30, 2013
    • Ludovic Courtès's avatar
      archive: Add '--authorize'. · f82cc5fd
      Ludovic Courtès authored
      * guix/scripts/archive.scm (authorize-key): New procedure.
        (guix-archive): Call it when OPTS contains 'authorize-key'.
      * tests/guix-archive.sh: Add test with invalid public key.
      * guix/pki.scm: Export '%acl-file'.
      * doc/guix.texi (Invoking guix archive): Make it clear that '--import'
        works only with authorized keys.  Document '--authorize'.
      f82cc5fd
    • Ludovic Courtès's avatar
      archive: Add '--generate-key'. · 554f26ec
      Ludovic Courtès authored
      * guix/pk-crypto.scm (error-source, error-string): New procedures.
      * guix/pki.scm (%private-key-file): New variable.
      * guix/scripts/archive.scm (show-help): Document '--generate-key'.
        (%options): Add "generate-key".
        (generate-key-pair): New procedure.
        (guix-archive): Call 'generate-key' when OPTS contains a
        'generate-key' pair.
      * doc/guix.texi (Setting Up the Daemon): Suggest generating a key pair.
        (Invoking guix archive): Document '--generate-key'.
      554f26ec
    • Ludovic Courtès's avatar
      doc: Invoke 'useradd' with '--system'. · 4d1a2b50
      Ludovic Courtès authored
      Reported by Kete <kete@ninthfloor.org>.
      Fixes <http://bugs.gnu.org/16289>.
      
      * doc/guix.texi (Setting Up the Daemon): Add '--system' to the 'useradd'
        command line.  Suggested by Kete <kete@ninthfloor.org>.
      4d1a2b50
  18. Dec 22, 2013
    • Ludovic Courtès's avatar
      Add 'guix archive'. · 760c60d6
      Ludovic Courtès authored
      * guix/scripts/archive.scm, tests/guix-archive.sh: New files.
      * Makefile.am (MODULES): Add 'archive.scm'.
        (SH_TESTS): Add 'guix-archive.sh'.
      * doc/guix.texi (Invoking guix archive): New section.
      * guix/scripts/build.scm: Export 'derivation-from-expression'.
      * guix/scripts/package.scm: Export 'specification->package+output'.
      760c60d6
  19. Dec 14, 2013
    • Mark H Weaver's avatar
      guix package: allow multiple arguments after -i, -r, and -u. · 6447738c
      Mark H Weaver authored
      * guix/scripts/package.scm (%options): Adapt option processors to accept and
        return a second seed value: 'arg-handler', which handles bare arguments (if
        not false).  The install, remove, and upgrade option processors return an
        arg-handler that repeat the same operation.  All other option processors
        return #f as the arg-handler.  Make the arguments to install and remove
        optional.  The upgrade option processor deletes (upgrade . #f) from the
        alist before adding a new entry.
        (guix-package): Procedures passed to 'args-fold*' accept the new seed value
        'arg-handler'.  The 'operand-proc' uses 'arg-handler' (if not false).
      
      * doc/guix.texi (Invoking guix package): Update docs.
      
      * tests/guix-package.sh: Add test.
      6447738c
  20. Dec 11, 2013
  21. Dec 09, 2013
  22. Dec 04, 2013
    • Ludovic Courtès's avatar
      derivations: Use more keyword parameters for 'build-expression->derivation'. · dd1a5a15
      Ludovic Courtès authored
      * guix/derivations.scm (build-expression->derivation): Turn 'system' and
        'inputs' into keyword parameters.
        Adjust callers accordingly.
      * gnu/system/linux.scm, gnu/system/vm.scm, guix/build-system/cmake.scm,
        guix/build-system/gnu.scm, guix/build-system/perl.scm,
        guix/build-system/python.scm, guix/build-system/trivial.scm,
        guix/download.scm, guix/packages.scm, guix/profiles.scm,
        guix/scripts/pull.scm, tests/derivations.scm, tests/guix-build.sh,
        tests/monads.scm, tests/store.scm, tests/union.scm: Adjust users of
        'build-expression->derivation' and 'derivation-expression'
        accordingly.
      * doc/guix.texi (Derivations): Adjust 'build-expression->derivation'
        documentation accordingly.
        (The Store Monad): Likewise for 'derivation-expression'.
      dd1a5a15
  23. Nov 23, 2013
  24. Nov 18, 2013
    • Ludovic Courtès's avatar
      doc: Link to package-list.html. · d03bb653
      Ludovic Courtès authored
      * doc/guix.texi (GNU Distribution): Add link to package-list.html.
      d03bb653
    • Ludovic Courtès's avatar
      guix build: '-e' can be passed a monadic thunk. · ac5de156
      Ludovic Courtès authored
      * guix/ui.scm (read/eval): New procedure.
        (read/eval-package-expression): Use it.
      * guix/scripts/build.scm (derivations-from-package-expressions): Rename to...
        (derivation-from-expression): ... this.  Accept procedures, under the
        assumption that they are monadic thunk.
        (show-help): Adjust accordingly.
        (guix-build): Ditto.
      * tests/guix-build.sh: Add test.
      * doc/guix.texi (Invoking guix build): Augment description of '-e'.
      ac5de156
    • Ludovic Courtès's avatar
      doc: Mention Linux containers; emphasize reproducible builds. · e900c503
      Ludovic Courtès authored
      * doc/guix.texi (Introduction): Use "containers" instead of "chroots".
        (Invoking guix-daemon): Add @cindex entries.  Mention the Linux
        container features.
        (Features): Add sentence on build reproducibility.
      e900c503
  25. Nov 12, 2013
    • Ludovic Courtès's avatar
      guix build: Add '--log-file'. · bf421152
      Ludovic Courtès authored
      * guix/scripts/build.scm (show-help): Add '--log-file'.
        (%options): Likewise.
        (guix-build): Set %FILE-PORT-NAME-CANONICALIZATION.  Honor '--log-file'.
      * tests/guix-build.sh: Add '--log-file' tests.
      * doc/guix.texi (Invoking guix build): Document '--log-file'.
      bf421152
  26. Nov 07, 2013
    • Ludovic Courtès's avatar
      packages: Add a 'snippet' field to <origin>. · f9cc8971
      Ludovic Courtès authored
      * 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.
      f9cc8971
    • Ludovic Courtès's avatar
      doc: Document current security issue with substitutes. · 18f2887b
      Ludovic Courtès authored
      Suggested by Mark H. Weaver <mhw@netris.org>.
      
      * doc/guix.texi (Features): Add note about unauthenticated binaries.
      18f2887b
    • Ludovic Courtès's avatar
      doc: Improve documentation of '--no-substitutes'. · b5385b52
      Ludovic Courtès authored
      Suggested by Mark H. Weaver <mhw@netris.org>.
      
      * doc/guix.texi (Invoking guix package): Spell out the --no-substitutes
        documentation.
        (Invoking guix build): Use the more complete --no-substitutes
        documentation.
        (Invoking guix-daemon): Explain the interaction with what clients ask
        for.
      b5385b52
  27. Nov 01, 2013
Loading