Skip to content
Snippets Groups Projects
  1. Oct 17, 2020
    • Miguel Ángel Arruga Vivas's avatar
      doc: Fix minor typos. · 3483e644
      Miguel Ángel Arruga Vivas authored
      * doc/guix.texi (cargo-build-system): Fix install phase description.
      (julia-build-system): Fix typo and add information from check.
      (pulseaudio-configuration): Remove duplicated words.
      (knot-acl-configuration)[id]: Fix typo.
      (mpd-output)[extra-options]: Likewise.
      (libvirt-configuration) [listen-tls?]: Add missing subject.
      [listen-tcp?]: Add missing subject and period.
      [tls-port, tcp-port, log-filters]: Add missing period.
      (hurd-vm-configuration)[netoptions]: Fix typo in example.
      (ganeti-watcher-service-type): Fix typo.
      (grub-theme)[gfxmode]: Remove see before @pxref.
      3483e644
  2. Oct 15, 2020
  3. Oct 14, 2020
    • Oleg Pykhalov's avatar
      services: nginx: Add lua module. · 00014f76
      Oleg Pykhalov authored
      * gnu/services/web.scm (<nginx-configuration>)
      [lua-package-path, lua-package-cpath]: New record types.
      * gnu/services/web.scm (default-nginx-config): Use them.
      * doc/guix.texi (Web Services): Document this.
      * doc/guix-cookbook.texi (System Configuration): Document this.
      00014f76
    • Ludovic Courtès's avatar
      doc: cookbook: Mention "#true" and "#false". · cd958802
      Ludovic Courtès authored
      * doc/guix-cookbook.texi (A Scheme Crash Course): Mention "#true" and
      "#false".
      (Extended example): Likewise.
      cd958802
    • Ludovic Courtès's avatar
      doc: Mention "i586-gnu" as supported and experimental. · d96e739f
      Ludovic Courtès authored
      * doc/guix.texi (GNU Distribution): Mention "i586-gnu".
      d96e739f
    • Ludovic Courtès's avatar
      doc: Avoid orphan node. · 4b0a1543
      Ludovic Courtès authored
      Commit 4b5a6fbc turned "Transparent
      Emulation with QEMU" into a node, but that was an orphan node, with no
      up/next/previous links.
      
      * doc/guix.texi (Virtualization Services): Capitalize subsection title.
      (Transparent Emulation with QEMU): Remove "@node" and add "@anchor".
      (Daemon Offload Setup): Adjust cross-reference accordingly.
      4b0a1543
  4. Oct 12, 2020
    • Ludovic Courtès's avatar
      guix build: Add '--with-c-toolchain'. · abd7a474
      Ludovic Courtès authored
      * guix/scripts/build.scm (package-dependents/spec)
      (package-toolchain-rewriting, transform-package-toolchain): New procedures.
      (%transformations): Add it.
      (%transformation-options, show-transformation-options-help): Add
      '--with-c-toolchain'.
      * tests/scripts-build.scm (depends-on-toolchain?): New procedure.
      ("options->transformation, with-c-toolchain")
      ("options->transformation, with-c-toolchain twice")
      New test.
      ("options->transformation, with-c-toolchain, no effect"): New tests.
      * doc/guix.texi (Package Transformation Options): Document it.
      abd7a474
    • Ludovic Courtès's avatar
      packages: Add 'package-with-c-toolchain'. · 46135ce4
      Ludovic Courtès authored
      * guix/build-system.scm (build-system-with-c-toolchain): New procedure.
      * guix/packages.scm (package-with-c-toolchain): New procedure.
      * tests/packages.scm ("package-with-c-toolchain"): New test.
      * doc/guix.texi (package Reference): Document 'package-with-c-toolchain'.
      (Build Systems): Mention it.
      46135ce4
  5. Oct 09, 2020
  6. Oct 08, 2020
    • Maxim Cournoyer's avatar
      offload: Improve load normalization and configurability. · efbf5fdd
      Maxim Cournoyer authored
      Fixes <https://issues.guix.gnu.org/43773>.
      
      The computed normalized load was previously obtained by dividing the load
      average as found in /proc/loadavg by the number of parallel builds defined for
      a build machine.
      
      This normalized load didn't allow to compare machines with different number of
      cores, as the load average reported by /proc/loadavg can be as high as the
      number of cores; thus comparing that value to a fixed threshold of 2.0 would
      mean machines with multiple cores were more likely to be flagged as overloaded
      compared to single core machines.
      
      This can be fixed by normalizing using the available number of cores instead
      of the number of parallel jobs.
      
      * guix/scripts/offload.scm (<build-machine>)[overload-threshold]: New field.
      (node-load): Modify to return a normalized load value between 0 and 1, taking
      into account the number of cores available.
      (normalized-load): Remove procedure.
      (report-load): New procedure.
      (choose-build-machine): Adjust to use the modified 'node-load' and the new
      'report-load' and 'build-machine-overload-threshold' procedures.
      (check-machine-status): Adjust.
      * doc/guix.texi (Daemon Offload Setup): Document the offload scheduler and the
      new 'overload-threshold' field.
      efbf5fdd
    • Ludovic Courtès's avatar
      doc: Clarify that guix-daemon doesn't have to be launched from the checkout. · 9022861d
      Ludovic Courtès authored
      Suggested by Emmanuel Agullo.
      
      * doc/contributing.texi (Running Guix Before It Is Installed): Move the
      "./pre-inst-env guix-daemon" snippet at the bottom.  Make it clear that
      it's necessary only when hacking on guix-daemon or when guix-daemon is
      not already running.
      9022861d
    • Ludovic Courtès's avatar
      doc: Developers don't need to run "make install" in Guix. · 6f406e5d
      Ludovic Courtès authored
      Suggested by Emmanuel Agullo.
      
      * doc/contributing.texi (Building from Git): Mention that running "make
      install" is unnecessary.
      6f406e5d
    • Ludovic Courtès's avatar
      doc: Improve choice of options in service examples. · e463ee4c
      Ludovic Courtès authored
      * doc/guix.texi (Using the Configuration System): In example, set
      'substitute-urls' rather than 'use-substitutes?', and set 'auto-login'
      for 'mingetty-configuration'.
      (Service Types and Services): In example, show 'extra-options' rather
      than 'use-substitutes?'.
      e463ee4c
  7. Oct 06, 2020
  8. Oct 05, 2020
    • Christopher Baines's avatar
      services: guix: Add guix-build-coordinator-queue-builds-service-type. · c14714cb
      Christopher Baines authored
      * gnu/services/guix.scm (<guix-build-coordinator-queue-builds-configuration>):
      New record type.
      (guix-build-coordinator-queue-builds-configuration,
      guix-build-coordinator-queue-builds-configuration?,
      guix-build-coordinator-queue-builds-configuration-package,
      guix-build-coordinator-queue-builds-configuration-user,
      guix-build-coordinator-queue-builds-coordinator,
      guix-build-coordinator-queue-builds-configuration-systems,
      guix-build-coordinator-queue-builds-configuration-system-and-targets,
      guix-build-coordinator-queue-builds-configuration-guix-data-service,
      guix-build-coordinator-queue-builds-configuration-processed-commits-file,
      guix-build-coordinator-queue-builds-shepherd-services,
      guix-build-coordinator-queue-builds-activation,
      guix-build-coordinator-queue-builds-account): New procedures.
      (guix-build-coordinator-queue-builds-service-type): New variable.
      * doc/guix.texi (Guix Services): Document it.
      c14714cb
    • Christopher Baines's avatar
      services: guix: Add guix-build-coordinator-agent-service-type. · 98ab323a
      Christopher Baines authored
      * gnu/services/guix.scm (<guix-build-coordinator-agent-configuration>): New
      record type.
      (guix-build-coordinator-agent-configuration,
      guix-build-coordinator-agent-configuration?,
      guix-build-coordinator-agent-configuration-package,
      guix-build-coordinator-agent-configuration-user,
      guix-build-coordinator-agent-configuration-coordinator,
      guix-build-coordinator-agent-configuration-uuid),
      guix-build-coordinator-agent-configuration-password,
      guix-build-coordinator-agent-configuration-password-file,
      guix-build-coordinator-agent-configuration-systems,
      guix-build-coordinator-agent-configuration-max-parallel-builds,
      guix-build-coordinator-agent-configuration-derivation-substitute-urls,
      guix-build-coordinator-agent-configuration-non-derivation-substitute-urls,
      guix-build-coordinator-agent-shepherd-services,
      guix-build-coordinator-agent-activation,
      guix-build-coordinator-agent-account): New procedures.
      (guix-build-coordinator-agent-service-type): New variable.
      * doc/guix.texi (Guix Services): Document it.
      98ab323a
    • Christopher Baines's avatar
      services: guix: Add guix-build-coordinator-service-type. · 15955e9b
      Christopher Baines authored
      * gnu/services/guix.scm (<guix-build-coordinator-configuration>): New record
      type.
      (guix-build-coordinator-configuration, guix-build-coordinator-configuration?,
      guix-build-coordinator-configuration-package,
      guix-build-coordinator-configuration-user,
      guix-build-coordinator-configuration-group,
      guix-build-coordinator-configuration-datastore-uri-string,
      guix-build-coordinator-configuration-agent-communication-uri-string,
      guix-build-coordinator-configuration-client-communication-uri-string,
      guix-build-coordinator-configuration-allocation-strategy,
      guix-build-coordinator-configuration-hooks,
      guix-build-coordinator-configuration-guile,
      make-guix-build-coordinator-start-script,
      guix-build-coordinator-shepherd-services, guix-build-coordinator-activation,
      guix-build-coordinator-account): New procedures.
      (guix-build-coordinator-service-type): New variable.
      * gnu/tests/guix.scm (%test-guix-build-coordinator): New variable.
      * doc/guix.texi (Guix Services): Document it.
      15955e9b
  9. Oct 02, 2020
    • Ludovic Courtès's avatar
      guix package: Re-apply package transformation when upgrading. · 8e1907a7
      Ludovic Courtès authored
      * guix/scripts/package.scm (transaction-upgrade-entry)[upgrade]: Add
      'transform' parameter.  Pass PKG through it.  Use
      'manifest-entry-with-transformations'.
      Call 'options->transformation' to get the transformation procedure.
      * tests/guix-package.sh: Add 'guix package -u' test.
      * tests/packages.scm ("transaction-upgrade-entry, transformation options preserved"):
      New test.
      * doc/guix.texi (Invoking guix package): Mention that transformations
      are preserved across upgrades.
      (Package Transformation Options): Likewise.
      8e1907a7
    • Florian Pelz's avatar
      doc: Explain why '--without-tests' may fail with modified 'check' phase. · 3c01fcc1
      Florian Pelz authored
      * doc/guix.texi (Package Transformation Options): Explain.
      3c01fcc1
  10. Oct 01, 2020
    • Oleg Pykhalov's avatar
      gnu: Add webssh service. · da6aec32
      Oleg Pykhalov authored
      * gnu/services/ssh.scm:
      (<webssh-configuration>): New record type.
      (%webssh-configuration-nginx, webssh-service-type): New variables.
      (webssh-account, webssh-activation, webssh-shepherd-service): New procedures.
      * doc/guix.texi: Document this.
      da6aec32
  11. Sep 30, 2020
    • Mathieu Othacehe's avatar
      scripts: system: Add support for image-type. · 313f4926
      Mathieu Othacehe authored
      
      * guix/scripts/system.scm (list-image-types): New procedure,
      (%options): add "image-type" and "list-image-types" options, remove
      "file-system-type" option,
      (show-help): adapt accordingly,
      (%default-options): also adapt, and set the default "image-type" to "raw",
      (perform-action): add image-type argument and remove file-system-type argument,
      (process-action):  adapt perform-action call,
      (system-derivation-for-action): remove base-image
      argument, add image-type argument, and use it to create the image passed to
      "system-image".
      * tests/guix-system.sh: Adapt accordingly and add a test for
      "--list-image-types" command.
      * doc/guix.texi (Building the Installation Image,
      Invoking guix system): Adapt accordingly.
      
      Signed-off-by: default avatarMathieu Othacehe <othacehe@gnu.org>
      313f4926
  12. Sep 29, 2020
  13. Sep 28, 2020
  14. Sep 27, 2020
    • Ludovic Courtès's avatar
      doc: Move channel @cindex within their nodes. · 8e2d5a0c
      Ludovic Courtès authored
      * doc/guix.texi (Channels): Move @cindex at the beginning of the node
      they refer to from the end of the previous node.
      8e2d5a0c
    • Ludovic Courtès's avatar
      doc: Move "Primary URL" after "Specifying Channel Authorizations". · 3b7bd8cc
      Ludovic Courtès authored
      * doc/guix.texi (Primary URL): Move after "Specifying Channel
      Authorizations" since the audience is channel authors who've already
      taken care of authorizations.
      3b7bd8cc
    • zimoun's avatar
      doc: Promote "Channels" as chapter and reorder. · 12871cc8
      zimoun authored
      
      The sectioning becomes:
      
      1.  Specifying Additional Channels     (was 3.)
      2.  Using a Custom Guix Channel        (was 2.)
      3.  Replicating Guix                   (was 9.)
      4.  Channel Authentication             (was 1.)
      5.  Primary URL                        (was 7.)
      6.  Creating a Channel                 (reworded)
      7.  Package Modules in a Sub-directory (was 5.)
      8.  Declaring Channel Dependencies     (was 4.)
      9.  Specifying Channel Authorizations  (was 6.)
      10. Writing Channel News               (was 8.)
      
      * doc/guix.texi (Channels): Move section to chapter.
      Reorder the chapter.
      Minor tweaks to keep uniformity.
      Update the master menu.
      
      Signed-off-by: default avatarLudovic Courtès <ludo@gnu.org>
      12871cc8
    • zimoun's avatar
      doc: Update the master menu. · fa18db48
      zimoun authored
      
      * doc/guix.texi: Update the master menu.
      
      Signed-off-by: default avatarLudovic Courtès <ludo@gnu.org>
      fa18db48
    • Ludovic Courtès's avatar
      packages: 'package-input-rewriting' has a #:deep? parameter. · 8819551c
      Ludovic Courtès authored
      * guix/packages.scm (package-input-rewriting): Add #:deep? and pass it
      to 'package-mapping'.
      [replacement-property]: New variable.
      [rewrite]: Check it.
      [cut?]: New procedure.
      * tests/packages.scm ("package-input-rewriting"): Pass #:deep? #f and
      ensure implicit inputs were not rewritten.  Avoid 'eq?' comparisons.
      ("package-input-rewriting, deep"): New test.
      * gnu/packages/guile.scm (package-for-guile-2.0, package-for-guile-3.0):
      Pass #:deep? #f.
      8819551c
    • Ludovic Courtès's avatar
      packages: 'package-input-rewriting/spec' can rewrite implicit dependencies. · 2bf6f962
      Ludovic Courtès authored
      With this change, '--with-input', '--with-graft', etc. also apply to
      implicit dependencies.  Thus, it's now possible to do:
      
        guix build python-itsdangerous --with-input=python-wrapper=python@2
      
      or:
      
        guix build hello --with-graft=glibc=glibc@2.29
      
      Additionally, before, implicit inputs were not rewritten, which could
      lead to duplicates in the output of 'bag-transitive-inputs' (packages
      that are not 'eq?' but lead to the same derivation).  This in turn would
      lead to unnecessary rebuilds when using '--with-input' & co.  This
      change fixes it by ensuring even implicit inputs are rewritten.
      
      Fixes <https://bugs.gnu.org/42156>.
      
      * guix/packages.scm (package-input-rewriting/spec): Add #:deep?
      defaulting to #true, and pass it to 'package-mapping'.
      [replacement-property]: New variable.
      [rewrite]: Check that property and set it on the result of PROC.
      [cut?]: New procedure.
      * tests/packages.scm ("package-input-rewriting/spec"): Ensure implicit
      inputs were unchanged.
      ("package-input-rewriting/spec, partial match"): Pass #:deep? #f.
      ("package-input-rewriting/spec, deep")
      ("package-input-rewriting/spec, no duplicates"): New tests.
      (package/inherit): Move before use.
      * tests/guix-build.sh: Add tests.
      * tests/scripts-build.scm ("options->transformation, with-graft"):
      Compare dependencies by package name or derivation file name.
      * doc/guix.texi (Defining Packages): Adjust accordingly.
      2bf6f962
    • Ludovic Courtès's avatar
      packages: 'package-mapping' can recurse on implicit inputs. · ff39361c
      Ludovic Courtès authored
      * guix/packages.scm (build-system-with-package-mapping): New procedure.
      (package-mapping): Add #:deep? and honor it.
      * tests/packages.scm ("package-mapping"): Compare the direct inputs of
      the bag of P0 and that of P1.
      ("package-mapping, deep"): New test.
      ff39361c
Loading