~ruther/guix-local

db393b33 — Ludovic Courtès 13 years ago
build-expression->derivation: Have the build fail when EXP returns #f.

* guix/derivations.scm (build-expression->derivation)[builder]: Pass the
  result of EXP to `exit'.

* tests/derivations.scm ("build-expression->derivation with expression
  returning #f"): New test.
9f55cf8d — Ludovic Courtès 13 years ago
Remove leftover debugging expressions.

* guix/build/utils.scm (directory-exists?): Remove leftover debugging
  expressions.
dcee50c1 — Ludovic Courtès 13 years ago
store: Wait for the server to be done sending output.

* guix/store.scm (current-build-output-port): New variable.
  (process-stderr): Add docstring.  Always return #f, except upon
  %STDERR-LAST.  Upon %STDERR-NEXT, write to
  `current-build-output-port', not `current-error-port'.
  (set-build-options): Loop until `process-stderr' returns true.
  (define-operation): Likewise.
  (build-derivations): Update docstring to mention that it's
  synchronous.
73d96596 — Ludovic Courtès 13 years ago
build: Be cross-compilation-ready.

* Makefile.am (.scm.go): Pass `--target=$(host)'.

* configure.ac: Use `AC_CANONICAL_HOST'.
48e8333d — Ludovic Courtès 13 years ago
build: Provide the right include path when building modules.

* Makefile.am (.scm.go): Add missing `-L $(top_srcdir)'.
1273d44a — Ludovic Courtès 13 years ago
Build (guix) last.

* Makefile.am (MODULES): Move `guix.scm' last.
af51c820 — Ludovic Courtès 13 years ago
Add a build system.

* configure.ac, Makefile.am: New files.
2acb2cb6 — Ludovic Courtès 13 years ago
Change `build-expression->derivation' to support sub-derivation inputs.

* guix/derivations.scm (build-expression->derivation): Change to expect
  INPUTS to have the form (NAME DRV-PATH SUB-DRV) or (NAME DRV-PATH),
  instead of (NAME . DRV-PATH).  Update callers accordingly.

* guix/gnu-build-system.scm, tests/builders.scm, tests/derivations.scm:
  Update accordingly.
c36db98c — Ludovic Courtès 13 years ago
Add supporting tools for the GNU Build System.

* guix/derivations.scm (build-expression->derivation): Add all of INPUTS
  as inputs to the final derivation.

* guix/build/gnu-build-system.scm, guix/build/utils.scm,
  guix/gnu-build-system.scm: New files.

* tests/builders.scm ("gnu-build"): New test.
bcdd83ec — Ludovic Courtès 13 years ago
Fix the order of the derivation's sources in `derivation-hash'.

* guix/derivations.scm (derivation-hash): Sort SOURCES alphabetically as
  well.
224f7ad6 — Ludovic Courtès 13 years ago
Fix `imported-files' for files with a common prefix.

* guix/derivations.scm (imported-files)[builder]: For TAIL, check
  whether it exists before (mkdir TAIL).

* tests/derivations.scm ("imported-files"): Add file with a common
  prefix.
d1b1c424 — Ludovic Courtès 13 years ago
Add `add-to-store' test for flat files.

* tests/derivations.scm ("add-to-store, flat"): New test.
3eb98237 — Ludovic Courtès 13 years ago
Augment `build-expression->derivation' with #:modules; add `http-fetch'.

* guix/derivations.scm (imported-modules): New procedure.
  (build-expression->derivation): New keyword argument `modules'.
  Use `imported-modules' when MODULES is non-empty, and pass it with
  `-L' to GUILE.

* guix/build/http.scm, guix/http.scm, tests/builders.scm: New files.
99634e3f — Ludovic Courtès 13 years ago
Add `imported-files'.

* guix/derivations.scm (imported-files): New procedure.
  (build-expression->derivation): Correctly handle inputs that are
  sources and not derivation paths.

* tests/derivations.scm ("imported-files"): New test.
0e383c76 — Ludovic Courtès 13 years ago
Fix the `build-expression->derivation' fixed-output test.

* tests/derivations.scm ("build-expression->derivation"): Fix the
  builder to actually pass a bytevector to `put-bytevector'.
98090557 — Ludovic Courtès 13 years ago
Add a `%current-system' fluid.

* guix/utils.scm (gnu-triplet->nix-system): New procedure.
  (%current-system): New variable.

* tests/utils.scm ("gnu-triplet->nix-system"): New test.

* tests/derivations.scm (%current-system): Remove.  Update users to
  use (%current-system) instead.
b37eb5ed — Ludovic Courtès 13 years ago
Add `add-to-store' with recursive directory storage.

* guix/store.scm (write-file): Implement directory recursive dump.
  (add-to-store): Fix the parameter list.

* tests/derivations.scm (directory-contents): New procedure.
  ("add-to-store, recursive"): New test.
81095052 — Ludovic Courtès 13 years ago
tests: Don't hard-code the system type.

* tests/derivations.scm (%current-system): New variable.  Replace
  occurrences of "x86_64-linux" by %CURRENT-SYSTEM.
9bc07f4d — Ludovic Courtès 13 years ago
Add multiple-output support to `build-expression->derivation'.

* guix/derivations.scm (build-expression->derivation): Add `outputs'
  keyword parameter; pass it to `derivation'.  Define `%outputs' in the
  prologue.

* tests/derivations.scm ("build-expression->derivation with two
  outputs"): New test.
7946c4e7 — Ludovic Courtès 13 years ago
Add `derivation' test for multiple-output derivations.

* tests/derivations.scm ("multiple-output derivation"): New test.
Next