Skip to content
Snippets Groups Projects
  1. Oct 10, 2013
  2. Sep 22, 2013
    • Ludovic Courtès's avatar
      Add 'guix-register'. · a7a4e6a4
      Ludovic Courtès authored
      * nix/guix-register/guix-register.cc, tests/guix-register.sh: New
        files.
      * Makefile.am (SH_TESTS)[BUILD_DAEMON]: Add tests/guix-register.sh.
      * daemon.am (sbin_PROGRAMS, guix_register_SOURCES,
        guix_register_CPPFLAGS, guix_register_LDADD): New variables.
      * test-env.in: Export 'storedir', 'prefix', 'datarootdir', 'datadir',
        and 'localstatedir'.
      a7a4e6a4
  3. Jul 08, 2013
  4. Apr 15, 2013
    • Ludovic Courtès's avatar
      substitute-binary: Add a local cache. · eba783b7
      Ludovic Courtès authored
      * guix/scripts/substitute-binary.scm (%narinfo-cache-directory,
        %narinfo-ttl, %narinfo-negative-ttl): New variables.
        (with-atomic-file-output, object->fields, read-narinfo,
        write-narinfo, narinfo->string, string->narinfo, lookup-narinfo): New
        procedures.
        (fetch-narinfo): Adjust to use `read-narinfo'.
        (guix-substitute-binary): Ensure the existence of
        %NARINFO-CACHE-DIRECTORY.  Use `lookup-narinfo' instead of
        `fetch-narinfo'.
      eba783b7
  5. Apr 12, 2013
    • Ludovic Courtès's avatar
      Add preliminary binary substituter. · 419fffa2
      Ludovic Courtès authored
      * guix/scripts/substitute-binary.scm: New file.
      * Makefile.am (MODULES): Add it.
      * nix/scripts/substitute-binary.in: New file.
      * config-daemon.ac: Produce nix/scripts/substitute-binary.
      * daemon.am (nodist_pkglibexec_SCRIPTS): Add
        nix/scripts/substitute-binary.
      * guix/store.scm (substitutable-path-info): Use the
        `query-substitutable-path-infos' RPC.
      * nix/nix-daemon/guix-daemon.cc (main): Honor `NIX_SUBSTITUTERS'.
      * pre-inst-env.in: Set `NIX_SUBSTITUTERS'.
      * test-env.in: Leave `NIX_SUBSTITUTERS' unchanged.  Set
        `GUIX_BINARY_SUBSTITUTE_URL, and create
        $NIX_STATE_DIR/substituter-data.
        Run `guix-daemon' within `./pre-inst-env'.
      * tests/store.scm ("substitute query"): New test.
      419fffa2
  6. Apr 03, 2013
    • Ludovic Courtès's avatar
      Add preliminary binary substituter. · f65cf81a
      Ludovic Courtès authored
      * guix/scripts/substitute-binary.scm: New file.
      * Makefile.am (MODULES): Add it.
      * nix/scripts/substitute-binary.in: New file.
      * config-daemon.ac: Produce nix/scripts/substitute-binary.
      * daemon.am (nodist_pkglibexec_SCRIPTS): Add
        nix/scripts/substitute-binary.
      * guix/store.scm (substitutable-path-info): Use the
        `query-substitutable-path-infos' RPC.
      * nix/nix-daemon/guix-daemon.cc (main): Honor `NIX_SUBSTITUTERS'.
      * pre-inst-env.in: Set `NIX_SUBSTITUTERS'.
      * test-env.in: Leave `NIX_SUBSTITUTERS' unchanged.  Set
        `GUIX_BINARY_SUBSTITUTE_URL, and create
        $NIX_STATE_DIR/substituter-data.
        Run `guix-daemon' within `./pre-inst-env'.
      * tests/store.scm ("substitute query"): New test.
      f65cf81a
  7. Jan 05, 2013
    • Ludovic Courtès's avatar
      Update license headers. · 233e7676
      Ludovic Courtès authored
      Change all license headers, except guix/build/* and ld-wrapper.scm, with
      this code:
      
        (use-modules (guix build utils)
      	       (srfi srfi-1))
      
        (fluid-set! %default-port-encoding "UTF-8")
      
        (substitute* (remove (lambda (f)
      			 (or (string-contains f ".tar.")
      			     (string-contains f ".git/")
      			     (string-contains f ".so")
      			     (string-suffix? ".o" f)
      			     (string-suffix? ".a" f)
      			     (string-suffix? ".go" f)
      			     (string-suffix? ".pdf" f)
      			     (string-suffix? ".png" f)
      			     (string-suffix? ".info" f)
      			     (equal? (basename f) "guix-daemon")
      			     (equal? (basename f) "nix-setuid-helper")
      			     (string-contains f "nix-upstream/")
      			     (string-contains f "distro/packages/bootstrap/")))
      		       (find-files "." "\\.[a-z]+$"))
          (("^([[:graph:]]+) This file is part of Guix." _ comment-start)
           (string-append comment-start " This file is part of GNU Guix."))
          (("^([[:graph:]]+) Guix --- Nix package management.*" _ comment-start)
           (string-append comment-start
      		    " GNU Guix --- Functional package management for GNU\n"))
          (("^([[:graph:]]+) Guix is " _ comment-start)
           (string-append comment-start " GNU Guix is "))
          (("^([[:graph:]]+) along with Guix." _ comment-start)
           (string-append comment-start " along with GNU Guix."))
          (("^([[:graph:]]+) Copyright \\(C\\)" _ comment-start)
           (string-append comment-start " Copyright ©")))
      
      Change headers using C-style comments manually.
      233e7676
  8. Dec 14, 2012
    • Ludovic Courtès's avatar
      daemon: Build `nix-setuid-helper'. · e1b7096a
      Ludovic Courtès authored
      * daemon.am (libexec_PROGRAMS, nix_setuid_helper_SOURCES,
        nix_setuid_helper_CPPFLAGS, nix_setuid_helper_LDADD): New variables.
      * test-env.in: Set and export `NIX_SETUID_HELPER'.
      * README (Installing Guix as non-root): New section.
      e1b7096a
  9. Dec 12, 2012
  10. Dec 05, 2012
    • Ludovic Courtès's avatar
      build: Run all the tests against the just-built daemon. · 69cfce50
      Ludovic Courtès authored
      * test-env.in: New file.
      * configure.ac: Add it to `AC_CONFIG_FILES' and `commands-exec'.
      * config-daemon.ac: Set and substitute `GUIX_TEST_ROOT'.
      * Makefile.am (SCM_LOG_COMPILER, SH_LOG_COMPILER): Use it in lieu of
        `pre-inst-env'.
      * daemon.am (test_root): Remove
        (AM_TESTS_ENVIRONMENT): Remove `TEST_ROOT'.
        (clean-local): Use $(GUIX_TEST_ROOT); make files writable before
        removing them.guix_test_root
      * tests/guix-daemon.sh: Remove `NIX_' variable settings; don't launch
        `guix-daemon'.
      69cfce50
Loading