Skip to content
Snippets Groups Projects
  1. Oct 08, 2014
  2. Oct 07, 2014
  3. Oct 06, 2014
  4. Oct 05, 2014
    • Ludovic Courtès's avatar
      build-system: Introduce "bags" as an intermediate representation. · 0d5a559f
      Ludovic Courtès authored
      * guix/build-system.scm (<build-system>)[build, cross-build]: Remove.
        [lower]: New field.
        (<bag>): New record type.
        (make-bag): New procedure.
      * guix/packages.scm (bag-transitive-inputs, bag-transitive-build-inputs,
        bag-transitive-host-inputs, bag-transitive-target-inputs,
        package->bag): New procedures.
        (package-derivation): Use it; use the bag, apply its build procedure,
        etc.
        (package-cross-derivation): Likewise.
      * gnu/packages/bootstrap.scm (raw-build, make-raw-bag): New procedure.
        (%bootstrap-guile): Use them.
      * guix/build-system/trivial.scm (lower): New procedure.
        (trivial-build, trivial-cross-build): Remove 'source' parameter.  Pass
        INPUTS as is.
        (trivial-build-system): Adjust accordingly.
      * guix/build-system/gnu.scm (%store, inputs-search-paths,
        standard-search-paths, expand-inputs, standard-inputs): Remove.
        (gnu-lower): New procedure.
        (gnu-build): Remove 'source' and #:implicit-inputs? parameters.
        Remove 'implicit-inputs' and 'implicit-search-paths' variables.  Get
        the source from INPUT-DRVS.
        (gnu-cross-build): Likewise.
        (standard-cross-packages): Remove call to 'standard-packages'.
        (standard-cross-inputs, standard-cross-search-paths): Remove.
        (gnu-build-system): Remove 'build' and 'cross-build'; add 'lower'.
      * guix/build-system/cmake.scm (lower): New procedure.
        (cmake-build): Remove 'source' and #:cmake parameters.  Use INPUTS and
        SEARCH-PATHS as is.  Get the source from INPUTS.
      * guix/build-system/perl.scm: Likewise.
      * guix/build-system/python.scm: Likewise.
      * guix/build-system/ruby.scm: Likewise.
      * gnu/packages/cross-base.scm (cross-gcc): Change "cross-linux-headers"
        to "linux-headers".
        (cross-libc)[xlinux-headers]: Pass #:implicit-cross-inputs? #f.
        Likewise.  In 'propagated-inputs', change "cross-linux-headers" to
        "linux-headers".
      * guix/git-download.scm (git-fetch): Use 'standard-packages' instead of
        'standard-inputs'.
      * tests/builders.scm ("gnu-build-system"): Remove use of
        'build-system-builder'.
        ("gnu-build"): Remove 'source' and #:implicit-inputs? arguments to
        'gnu-build'.
      * tests/packages.scm ("search paths"): Adjust to new build system API.
        ("package-cross-derivation, no cross builder"): Likewise.
      * doc/guix.texi (Build Systems): Add paragraph on bags.
      0d5a559f
  5. Oct 04, 2014
  6. Oct 03, 2014
    • Ludovic Courtès's avatar
      ui: Recognize the same size units as Coreutils. · 4a44d7bb
      Ludovic Courtès authored
      * guix/ui.scm (size->number): Add a bunch of large units.  Recognize
        one-letter unit names.  Change "KB" to "kB".
      * tests/ui.scm ("size->number, 1T"): New test.
      * doc/guix.texi (Invoking guix gc): Add cross-reference to "Block size"
        in the Coreutils manual.
        (Invoking guix system): Likewise.
      4a44d7bb
  7. Sep 28, 2014
  8. Sep 24, 2014
  9. Sep 23, 2014
  10. Sep 22, 2014
    • Ludovic Courtès's avatar
      linux-initrd: Adjust VM code and doc to new 'base-initrd' signature. · 52ac153e
      Ludovic Courtès authored
      This fixes regressions introduced in de1c158f ("system: Add support for
      boot-time mapped devices.").
      
      * doc/guix.texi (Initial RAM Disk): Adjust example with custom use of
        'base-initrd'.  Document #:mapped-devices parameter of 'base-initrd'.
      * gnu/system/vm.scm (system-disk-image, system-qemu-image,
        virtualized-operating-system): Adjust call to 'base-initrd' to new
        signature.
      52ac153e
  11. Sep 18, 2014
  12. Sep 14, 2014
  13. Sep 08, 2014
    • Ludovic Courtès's avatar
      linux-initrd: Store Linux modules in a normal store directory. · 42d10464
      Ludovic Courtès authored
      * gnu/system/linux-initrd.scm (expression->initrd): Remove #:linux and
        #:linux-modules parameters.  Remove call to
        'float-linux-module-directory'.
        (base-initrd): Add call to 'float-linux-module-directory'.  Use it in
        #:linux-modules argument in the gexp.  Remove #:linux and
        #:linux-modules arguments to 'expression->initrd'.
      * gnu/build/linux-initrd.scm (build-initrd): Remove
        #:linux-module-directory parameter.  Don't create 'modules'
        sub-directory.
      * gnu/build/linux-boot.scm (boot-system): Mentin that LINUX-MODULES is a
        list of absolute file names.  Don't prepend "/modules/" to
        LINUX-MODULES.
      * doc/guix.texi (Initial RAM Disk): Adjust accordingly.
      42d10464
    • Ludovic Courtès's avatar
      linux-initrd: Remove #:to-copy argument of 'expression->initrd'. · df650fa8
      Ludovic Courtès authored
      * gnu/system/linux-initrd.scm (expression->initrd): Remove #:to-copy
        parameter.  Remove 'graph-files', and adjust #:references-graphs
        arguments to just list INIT.
        (base-initrd): Remove #:to-copy argument.
      * doc/guix.texi (Initial RAM Disk): Adjust accordingly.
      df650fa8
  14. Sep 06, 2014
    • Ludovic Courtès's avatar
      gexp: Allow use of high-level objects in #:references-graphs. · b53833b2
      Ludovic Courtès authored
      * guix/gexp.scm (lower-reference-graphs): New procedure.
        (gexp->derivation)[graphs-file-names]: New procedure.
        Use 'lower-reference-graphs', and augment #:inputs argument as a
        function of #:references-graphs.
      * doc/guix.texi (G-Expressions): Adjust 'gexp->derivation' documentation
        accordingly.
      * tests/gexp.scm ("gexp->derivation, store copy"): Remove reference to
        TWO in BUILD-DRV.  Use TWO directly in #:references-graphs argument.
        ("gexp->derivation #:references-graphs"): New test.
      * gnu/system/vm.scm (qemu-image): Remove variable 'graph'; use INPUTS as
        the #:references-graphs argument to
        'expression->derivation-in-linux-vm'.
      b53833b2
  15. Sep 03, 2014
    • Alex Kost's avatar
      Add Emacs user interface. · 457f60fa
      Alex Kost authored
      * configure.ac (emacsuidir): New variable.
        (AC_CONFIG_FILES): Add 'emacs/guix-init.el', 'emacs/guix-helper.scm'.
      * Makefile.am: Include 'emacs.am'.
      * emacs.am: New file.
      * doc/emacs.texi: New file.
      * doc/guix.texi: Include 'emacs.texi'.
      * emacs/guix-backend.el: New file.
      * emacs/guix-base.el: New file.
      * emacs/guix-helper.scm.in: New file.
      * emacs/guix-history.el: New file.
      * emacs/guix-info.el: New file.
      * emacs/guix-init.el.in: New file.
      * emacs/guix-list.el: New file.
      * emacs/guix-main.scm: New file.
      * emacs/guix-utils.el: New file.
      * emacs/guix.el: New file.
      457f60fa
    • Cyril Roelandt's avatar
      scripts: add guix lint · b4f5e0e8
      Cyril Roelandt authored
      * guix/scripts/lint.scm: New file. Defines a 'lint' tool for Guix packages.
      * tests/lint.scm: New file.
      * Makefile.am (MODULES, SCM_TESTS): Add them.
      * po/guix/Makevars: Update appropriately.
      * po/guix/POTFILES.in: Update appropriately.
      * doc/guix.texi: Document "guix lint".
      b4f5e0e8
  16. Sep 01, 2014
  17. Aug 31, 2014
    • Ludovic Courtès's avatar
      daemon: Rename '--disable-store-optimization' to '--disable-deduplication'. · ab3893d7
      Ludovic Courtès authored
      * nix/nix-daemon/guix-daemon.cc (GUIX_OPT_DISABLE_STORE_OPTIMIZATION):
        Rename to...
        (GUIX_OPT_DISABLE_DEDUPLICATION): ... this.  Adjust user accordingly.
        (options): Add "disable-deduplication".  Make
        "disable-store-optimization" a hidden alias.
      * doc/guix.texi (Invoking guix-daemon): Adjust to new option name.  Add
        index entry.  Improve description.
      ab3893d7
  18. Aug 28, 2014
  19. Aug 18, 2014
    • Ludovic Courtès's avatar
      gexp: Add 'ungexp-native' and 'ungexp-native-splicing'. · 667b2508
      Ludovic Courtès authored
      * guix/gexp.scm (<gexp>)[natives]: New field.
        (write-gexp): Use both 'gexp-references' and
        'gexp-native-references'.
        (gexp->derivation): Use both 'gexp-inputs' and 'gexp-native-inputs',
        and append them.
        (gexp-inputs): Add 'references' parameter and honor it.
        (gexp-native-inputs): New procedure.
        (gexp->sexp)[reference->sexp]: Add 'native?' parameter and honor it.
        Use it, and use 'gexp-native-references'.
        (gexp)[collect-native-escapes]: New procedure.
        [escape->ref]: Handle 'ungexp-native' and 'ungexp-native-splicing'.
        [substitute-ungexp, substitute-ungexp-splicing]: New procedures.
        [substitute-references]: Use them, and handle 'ungexp-native' and
        'ungexp-native-splicing'.
        Adjust generated 'make-gexp' call to provide both normal references
        and native references.
        [read-ungexp]: Support 'ungexp-native' and
        'ungexp-native-splicing'.
        Add reader extension for #+.
      * tests/gexp.scm (gexp-native-inputs): New procedure.
        (gexp->sexp*): Add 'target' parameter.
        ("ungexp + ungexp-native",
        "input list + ungexp-native",
        "input list splicing + ungexp-native-splicing",
        "gexp->derivation, ungexp-native",
        "gexp->derivation, ungexp + ungexp-native"): New tests.
        ("sugar"): Add tests for #+ and #+@.
      * doc/guix.texi (G-Expressions): Document 'ungexp-native' et al.
      667b2508
  20. Aug 17, 2014
    • Ludovic Courtès's avatar
      gexp: Add #:target parameter to 'gexp->derivation'. · 68a61e9f
      Ludovic Courtès authored
      * guix/gexp.scm (lower-inputs): Add #:system and #:target.  Use
        'package->cross-derivation' when TARGET is true.  Honor SYSTEM.
        (gexp->derivation): Add #:target argument.  Pass SYSTEM and TARGET to
        'lower-inputs' and 'gexp->sexp'.
        (gexp->sexp): Add #:system and #:target.  Pass them in recursive call
        and to 'package-file'.
      * tests/gexp.scm (gexp->sexp*): Add 'system' and 'target' parameters.
        ("gexp->derivation, cross-compilation"): New test.
      68a61e9f
    • Ludovic Courtès's avatar
      monads: Add 'package->cross-derivation' and #:target for 'package-file'. · 4231f05b
      Ludovic Courtès authored
      * guix/monads.scm (package-file): Add #:target keyword parameter and
        honor it.
        (package->cross-derivation): New procedure.
      * tests/monads.scm ("package-file + package->cross-derivation"): New test.
      * doc/guix.texi (The Store Monad): Update 'package-file' documentation.
        Add 'package->cross-derivation'.
      4231f05b
  21. Aug 15, 2014
  22. Jul 25, 2014
  23. Jul 24, 2014
    • Ludovic Courtès's avatar
      system: Add the 'system?' field for user groups. · c8fa3426
      Ludovic Courtès authored
      Suggested by Mark H. Weaver.
      
      * gnu/system/shadow.scm (<user-group>)[system?]: New field.
        (%base-groups): Introduce 'system-group' macro, and use it.
      * gnu/system.scm (user-group->gexp): Pass the 'system?' field.
      * guix/build/activation.scm (add-group): Add #:system? and honor it.
        (activate-users+groups): Handle the 'system?' field.
      * gnu/system/file-systems.scm (%tty-gid): Choose an ID below 1000.
      * doc/guix.texi (User Accounts): Document the 'system?' field.
      c8fa3426
    • Ludovic Courtès's avatar
      doc: Make sure out-of-source-tree builds find os-config.tmpl. · 931c132a
      Ludovic Courtès authored
      * Makefile.am (BUILT_SOURCES): New variable.
      * daemon.am (BUILT_SOURCES): Use +=.
      * doc.am (BUILT_SOURCES, MAINTAINERCLEANFILES, EXTRA_DIST): Add
        doc/os-config.texi.
        (doc/os-config.texi): New target.
      * doc/guix.texi (System Installation): Include os-config.texi.
      931c132a
    • Ludovic Courtès's avatar
      doc: Add "guix system" to 'dir'. · 054e8576
      Ludovic Courtès authored
      * doc/guix.texi: Add "guix system" to the dir entry.
      054e8576
    • Ludovic Courtès's avatar
      install: Add a configuration template to the image. · 1dac8566
      Ludovic Courtès authored
      * gnu/system/os-config.tmpl: New file.
      * gnu-system.am (GNU_SYSTEM_MODULES): Add it
      * gnu/system/install.scm (configuration-template-service): New
        procedure.
        (installation-services): Call it.
      * doc/guix.texi (System Installation): Mention
        configuration-template.scm, and @include gnu/system/os-config.tmpl.
      1dac8566
    • Ludovic Courtès's avatar
      monads: Add 'interned-file'. · 0a90af15
      Ludovic Courtès authored
      * guix/monads.scm (interned-file): New procedure.
      * tests/monads.scm ("interned-file"): New test.
      * doc/guix.texi (The Store Monad): Document it.
      0a90af15
    • Ludovic Courtès's avatar
      doc: Recommend partition labels. · 7ab44369
      Ludovic Courtès authored
      * doc/guix.texi (System Installation): Recommend partition labels.
      7ab44369
  24. Jul 23, 2014
    • Ludovic Courtès's avatar
      install: Add a service to back the store with the target disk. · 83a17b62
      Ludovic Courtès authored
      Fixes <http://bugs.gnu.org/18061>.
      Reported by Adam Pribyl <pribyl@lowlevel.cz>.
      
      * gnu/services/dmd.scm (dmd-configuration-file)[config]: Import (guix
        build utils).
      * gnu/system/install.scm (make-cow-store, cow-store-service): New
        procedures.
        (installation-services): Use it.
        (%backing-directory): New variable.
      * doc/guix.texi (System Installation): Add the 'deco start cow-store
        /mnt' phase.
      83a17b62
    • Ludovic Courtès's avatar
      system: Add /dev/shm. · db17ae5c
      Ludovic Courtès authored
      * gnu/system/file-systems.scm (%shared-memory-file-system): New
        variable.
        (%base-file-systems): Add it.
      * doc/guix.texi (File Systems): Document it.
      db17ae5c
    • Ludovic Courtès's avatar
      system: Recognize more file system flags. · 2c071ce9
      Ludovic Courtès authored
      * guix/build/linux-initrd.scm (MS_NOSUID, MS_NODEV, MS_NOEXEC): New
        variables.
        (mount-flags->bit-mask): New procedure.
        (mount-file-system)[flags->bit-mask]: Remove.
        Use 'mount-flags->bit-mask' instead.
        In /etc/mtab, use the empty string when OPTIONS is false.
      * gnu/services/base.scm (file-system-service): Add #:flags parameter and
        honor it.
      * gnu/system.scm (other-file-system-services): Pass FLAGS to
        'file-system-service'.
      2c071ce9
Loading