Skip to content
Snippets Groups Projects
  1. Mar 15, 2021
    • Maxim Cournoyer's avatar
      services/qemu-binfmt: Use the F flag and the static output of QEMU. · 77c2f4e2
      Maxim Cournoyer authored
      Fixes <https://issues.guix.gnu.org/36117>.
      
      Before this change, the 'binfmt_misc' entries registered for QEMU would not be
      usable in container contexts outside of guix-daemon (without manually bind
      mounting file names).
      
      For example:
      
      $ docker run --rm arm32v7/debian true
      standard_init_linux.go:207: exec user process caused "no such file or directory"
      
      After this change, any container can make use of the QEMU binfmt_misc
      registrations, as their corresponding QEMU static binaries are fully
      pre-loaded by the kernel.
      
      * gnu/services/virtualization.scm (<qemu-platform>): Define using
      'define-record-type*'.
      [flags]: New field, which defaults to "F" (fix binary).
      (%i386, %i486, %alpha, %arm, %armeb, %sparc, %sparc32plus, %ppc, %ppc64)
      (%ppc64le, %m68k, %mips, %mipsel, %mipsn32, %mipsn32el, %mips64, %mips64el)
      (%riscv32, %riscv64, %sh4, %sh4eb, %s390x, %aarch64, %hppa): Adjust.
      (qemu-binfmt-guix-chroot): Remove variable.
      (qemu-binfmt-service-type): Remove the qemu-binfmt-guix-chroot extension.
      * gnu/services/qemu-binfmt (qemu-platform->binfmt):  Use the static output of
      QEMU.
      * doc/contributing.texi (Submitting Patches): Update doc.
      * doc/guix.texi (Virtualization Services): Update doc.
      Unverified
      77c2f4e2
  2. Mar 14, 2021
    • Efraim Flashner's avatar
      build-system/cargo: Propagate crates across builds. · 4d00185d
      Efraim Flashner authored
      * guix/build-system/cargo.scm (cargo-build): Add cargo-package-flags,
      install-source flags.
      * guix/build/cargo-build-system.scm (unpack-rust-crates, package): New
      procedures.
      (install): Also install crate sources.
      (%standard-phases): Add new phases.
      * doc/guix.texi (Packaging-guidelines)[Rust Crates]: Adjust to changes
      in the cargo-build-system.
      Unverified
      4d00185d
  3. Mar 12, 2021
  4. Mar 10, 2021
    • Katherine Cox-Buday's avatar
      import: Add Go importer. · 02e2e093
      Katherine Cox-Buday authored
      
      This patch adds a 'guix import go' command.
      
      * doc/guix.texi (Requirements): Mention Guile-Lib dependency.
      (Invoking guix import): Document 'guix import go'.
      * gnu/packages/package-management.scm (guix)[inputs, propagated-inputs]:
      Add GUILE-LIB.
      * guix/self.scm (compiled-guix)[guile-lib]: New variable.
      [dependencies]: Add it.
      (specification->package): Add "guile-lib".
      * guix/build-system/go.scm (go-version->git-ref): New procedure.
      * guix/import/go.scm, guix/scripts/import/go.scm, tests/go.scm: New files.
      * guix/scripts/import.scm: Declare subcommand guix import go
      * po/guix/POTFILES.in: Add 'guix/scripts/import/go.scm'.
      * Makefile.am (MODULES): Add 'guix/import/go.scm' and
      'guix/scripts/import/go.scm'.
      (SCM_TESTS): Add 'tests/go.scm'.
      
      Co-Authored-By: default avatarHelio Machado <0x2b3bfa0@gmail.com>
      Co-Authored-By: default avatarFrancois Joulaud <francois.joulaud@radiofrance.com>
      Co-Authored-By: default avatarMaxim Cournoyer <maxim.cournoyer@gmail.com>
      Co-Authored-by: default avatarLudovic Courtès <ludo@gnu.org>
      Unverified
      02e2e093
  5. Mar 06, 2021
  6. Mar 05, 2021
  7. Feb 28, 2021
    • Christopher Baines's avatar
      services: guix-build-coordinator: Add dynamic auth record. · 8a7b4ce0
      Christopher Baines authored
      * gnu/services/guix.scm (guix-build-coordinator-agent-dynamic-auth,
      guix-build-coordinator-agent-dynamic-auth?,
      guix-build-coordinator-agent-dynamic-auth-agent-name,
      guix-build-coordinator-agent-dynamic-auth-token): New procedures.
      (guix-build-coordinator-agent-shepherd-services): Handle new dynamic auth
      record.
      * doc/guix.texi (Guix Build Coordinator): Document the new dynamic auth
      record.
      Unverified
      8a7b4ce0
    • Christopher Baines's avatar
      services: guix-build-coordinator: Rework authentication config. · 7556130c
      Christopher Baines authored
      A new authentication approach has been added to the coordinator, so to better
      represent the options, this commit changes the configuration to accept
      different records, each for different authentication approaches.
      
      * gnu/services/guix.scm (guix-build-coordinator-agent-configuration-uuid,
      guix-build-coordinator-agent-configuration-password,
      guix-build-coordinator-agent-configuration-password-file): Removed
      procedures.
      (guix-build-coordinator-agent-password-auth,
      guix-build-coordinator-agent-password-auth?,
      guix-build-coordinator-agent-password-auth-uuid,
      guix-build-coordinator-agent-password-auth-password,
      guix-build-coordinator-agent-password-file-auth,
      guix-build-coordinator-agent-password-file-auth?,
      guix-build-coordinator-agent-password-file-auth-uuid,
      guix-build-coordinator-agent-password-file-auth-password-file): New
      procedures.
      (guix-build-coordinator-agent-shepherd-services): Adjust to handle the
      authentication field and it's possible record values.
      * doc/guix.texi (Guix Build Coordinator): Update documentation.
      Unverified
      7556130c
  8. Feb 25, 2021
  9. Feb 23, 2021
    • raid5atemyhomework's avatar
      doc: Expand sane-service-type documentation. · 0a0b0148
      raid5atemyhomework authored
      
      * doc/guix.texi (sane-service-type): Move from between documentation
      about geoclue, expand slightly.
      (sane-backends-minimal): New description.
      (sane-backends): New description, new example.
      
      Signed-off-by: default avatarNicolas Goaziou <mail@nicolasgoaziou.fr>
      Unverified
      0a0b0148
    • Mathieu Othacehe's avatar
      services: cuirass: Improve simple-cuirass-services. · bebcf976
      Mathieu Othacehe authored
      
      Instead of returning multiple services in simple-cuirass-services, rely on the
      instantiate-missing-services procedure to instantiate postgresql and
      postgresql-role-service-type when missing.
      
      Turn simple-cuirass-services procedure into
      simple-cuirass-configuration->specs, that takes a simple-cuirass-configuration
      record and returns a Cuirass specification.
      
      Suggested-by: default avatarLudovic Courtès <ludo@gnu.org>
      
      * gnu/services/cuirass.scm (%default-cuirass-config): Remove it.
      (simple-cuirass-services): Rename it to ...
      (simple-cuirass-configuration->specs): ... this procedure.
      * gnu/tests/cuirass.scm (cuirass-services): Remove postgresql and
      postgresql-role services that are automatically instantiated.
      (simple-cuirass-service): New variable.
      (%cuirass-simple-test): Adapt it to use simple-cuirass-configuration->specs
      instead of simple-cuirass-services.
      * doc/guix.texi (Simple Cuirass): Update it.
      Unverified
      bebcf976
  10. Feb 22, 2021
  11. Feb 20, 2021
  12. Feb 19, 2021
  13. Feb 17, 2021
    • Mathieu Othacehe's avatar
      scripts: system: Remove 'vm-image' command. · ee2a5da8
      Mathieu Othacehe authored
      Remove the 'vm-image' command that has been superseded by the 'image'
      command.
      
      * gnu/system/vm.scm (system-qemu-image): Remove it.
      * guix/scripts/system.scm (system-derivation-for-action): Mark 'vm-image'
      command as deprecated and use the image API to produce the VM image.
      (perform-action, show-help): Adapt accordingly.
      * tests/guix-system.sh: Ditto.
      * doc/guix.texi (Invoking guix system,
      Running Guix in a VM): Ditto.
      * etc/completion/fish/guix.fish: Ditto.
      * etc/completion/zsh/_guix: Ditto.
      Unverified
      ee2a5da8
    • Mathieu Othacehe's avatar
      services: wireguard: New service. · 43b2e440
      Mathieu Othacehe authored
      * gnu/services/vpn.scm (wireguard-peer, wireguard-configuration): New records.
      (wireguard-service-type): New variable.
      * doc/guix.texi (VPN Services): Document it.
      Unverified
      43b2e440
  14. Feb 15, 2021
  15. Feb 12, 2021
  16. Feb 11, 2021
  17. Feb 07, 2021
  18. Feb 02, 2021
  19. Feb 01, 2021
    • Oleg Pykhalov's avatar
      doc: Explain how to set custom Shepherd package. · 847c816d
      Oleg Pykhalov authored
      * doc/guix.texi (Shepherd Services): Give example on how to set custom
      Shepherd package.
      Unverified
      847c816d
    • Ludovic Courtès's avatar
      guix package: Add '--export-channels'. · aedbc5ff
      Ludovic Courtès authored
      * guix/channels.scm (sexp->channel): Export.
      * guix/describe.scm: Use (guix channels).
      (manifest-entry-provenance): New procedure.
      * guix/scripts/package.scm (channel=?, export-channels): New
      procedures.
      (show-help, %options): Add '--export-channels'.
      (process-query): Honor it.
      * build-aux/build-self.scm (build-program)[select?]: Exclude (guix
      channels) to account for the (guix describe) change above.
      * doc/guix.texi (Invoking guix package): Document it.
      Unverified
      aedbc5ff
    • Ludovic Courtès's avatar
      guix package: Add '--export-manifest'. · 9fd7b050
      Ludovic Courtès authored
      * guix/scripts/package.scm (export-manifest): New procedure.
      (show-help, %options): Add '--export-manifest'.
      (process-query): Honor it.
      * guix/build/profiles.scm (build-profile): Mention it.
      * tests/guix-package.sh: Test it.
      * doc/guix.texi (Invoking guix package): Document it.
      Unverified
      9fd7b050
    • Maxim Cournoyer's avatar
      build: test-driver.scm: Add a new '--errors-only' option. · 93a628c4
      Maxim Cournoyer authored
      * build-aux/test-driver.scm (show-help): Add the help text for the
      new '--errors-only' option.
      (%options): Add the errors-only option.
      (test-runner-gnu): Add the errors-only? parameter and update doc.  Move the
      logging of the test data after the test has completed, so a choice can be made
      whether to keep it or discard it based on the value of the test result.
      (main): Pass the errors-only? option to the driver.
      * doc/guix.texi (Running the Test Suite): Document the new option.
      Unverified
      93a628c4
    • Maxim Cournoyer's avatar
      build: test-driver.scm: Add test cases filtering options. · a1ea2acb
      Maxim Cournoyer authored
      * build-aux/test-driver.scm (show-help): Add help text for the new --select
      and --exclude options.
      (%options): Add the new select and exclude options.
      (test-runner-gnu): Pass them to the test runner.  Update doc.
      (test-match-name*, test-match-name*/negated, %test-match-all): New variables.
      (main): Compute the test specifier based on the values of the new options and
      apply it to the current test runner when running the test file.
      * doc/guix.texi (Running the Test Suite): Document the new options.
      Unverified
      a1ea2acb
  20. Jan 31, 2021
  21. Jan 30, 2021
    • Maxime Devos's avatar
      services: shepherd: Allow custom 'shepherd' package. · 95f72dcd
      Maxime Devos authored
      
      * gnu/services/shepherd.scm (<shepherd-configuration>): New record.
      (shepherd-boot-gexp, shepherd-root-service-type): Use it.
      (scm->go, shepherd-configuration-file): Allow passing custom
      shepherd package.
      * gnu/system.scm (operating-system-shepherd-service-names): Use the new
      record.
      * guix/scripts/system.scm (export-shepherd-graph): Adjust accordingly.
      * doc/guix.texi (Shepherd Services). Document it.
      
      Co-authored-by: default avatarLudovic Courtès <ludo@gnu.org>
      Unverified
      95f72dcd
    • nixo's avatar
      build-system/julia: Don't rely on file name to set module name. · ba093a6d
      nixo authored
      
      * guix/build/julia-build-system.scm (project.toml->name): New procedure.
        (precompile, check, julia-build): Accept new key argument #:julia-package-name.
      * guix/build-system/julia.scm (julia-build): ... add it.
      * doc/guix.texi (julia-build-system): Update julia-package-name accordingly.
      
      Signed-off-by: default avatarLudovic Courtès <ludo@gnu.org>
      Unverified
      ba093a6d
    • nixo's avatar
      build-system/julia: Enable tests. · a23b384f
      nixo authored
      
      * guix/build-system/julia.scm (julia-build): Set tests? default to #t.
      * guix/build/julia-build-system.scm (check): Respect tests? and fix julia
        invocation.
        (%standard-phases): Add check phase after install.
      * doc/guix.texi (julia-build-system): Update accordingly.
      
      Signed-off-by: default avatarLudovic Courtès <ludo@gnu.org>
      Unverified
      a23b384f
  22. Jan 28, 2021
    • Joshua Branson's avatar
      doc: Fix mapped devices example in the manual. · 4a480147
      Joshua Branson authored
      
      Reported by Raghav Gururajan <rg@raghavgururajan.name> and Mikhail Tsykalov
      <tsymsh@gmail.com>.
      
      * doc/guix.texi (Mapped Devices): Replace target with targets.
      
      Signed-off-by: default avatarLeo Famulari <leo@famulari.name>
      Unverified
      4a480147
    • Mathieu Othacehe's avatar
      services: postgresql: Add postgresql-role-service-type. · ec145a2f
      Mathieu Othacehe authored
      * gnu/services/databases.scm (postgresql-role,
      postgresql-role?, postgresql-role-name,
      postgresql-role-permissions, postgresql-role-create-database?,
      postgresql-role-configuration, postgresql-role-configuration?,
      postgresql-role-configuration-host, postgresql-role-configuration-roles,
      postgresql-role-service-type): New procedures.
      * gnu/tests/databases.scm: Test it.
      * doc/guix.texi: Document it.
      Unverified
      ec145a2f
    • Mathieu Othacehe's avatar
      services: postgresql: Add log directory support. · fe4b8823
      Mathieu Othacehe authored
      * gnu/services/databases.scm (postgresql-configuration-log-directory): New
      procedure.
      (<postgresql-configuration>)[log-directory]: New field.
      (postgresql-activation): Create the log directory.
      (postgresql-shepherd-service): Honor it.
      * gnu/tests/databases.scm (%postgresql-log-directory): New variable.
      (log-file): New test case.
      * doc/guix.texi (Database Services): Document it.
      Unverified
      fe4b8823
    • Mathieu Othacehe's avatar
      services: postgresql: Add socket directory support. · 6c067921
      Mathieu Othacehe authored
      
      * gnu/services/databases.scm (postgresql-config-file-socket-directory): New
      procedure.
      (<postgresql-config-file>)[socket-directory]: New field.
      (postgresql-config-file-compiler): Honor it.
      (postgresql-activation): Create the socket directory if needed.
      * doc/guix.texi (Database Services): Document it.
      * gnu/tests/guix.scm (%guix-data-service-os): Adapt it.
      * gnu/tests/monitoring.scm (%zabbix-os): Ditto.
      * gnu/tests/web.scm (patchwork-os): Ditto.
      
      Signed-off-by: default avatarMathieu Othacehe <othacehe@gnu.org>
      Unverified
      6c067921
Loading