summaryrefslogtreecommitdiff
path: root/guix/packages.scm
AgeCommit message (Collapse)Author
2012-11-25packages: Add missing export.Ludovic Courtès
* guix/packages.scm: Export `package-home-page'.
2012-11-11Move base32 code to (guix base32).Ludovic Courtès
* guix/utils.scm (bytevector-quintet-ref, bytevector-quintet-ref-right, bytevector-quintet-length, bytevector-quintet-fold, bytevector-quintet-fold-right, make-bytevector->base32-string, %nix-base32-chars, %rfc4648-base32-chars, bytevector->base32-string, bytevector->nix-base32-string, bytevector-quintet-set!, bytevector-quintet-set-right!, base32-string-unfold, base32-string-unfold-right, make-base32-string->bytevector, base32-string->bytevector, nix-base32-string->bytevector): Move to... * guix/base32.scm: ... here. New file. * tests/utils.scm (%nix-hash, "bytevector->base32-string", "base32-string->bytevector", "nix-base32-string->bytevector", "sha256 & bytevector->base32-string"): Move to... * tests/base32.scm: ... here. New file * guix-download.in, guix/derivations.scm, guix/packages.scm, guix/snix.scm, tests/builders.scm, tests/derivations.scm: Adjust accordingly. * guix.scm (%public-modules): Add `base32'.
2012-11-04packages: `description' → `synopsis', `long-description' → `description'.Ludovic Courtès
* guix/packages.scm (<package>): Rename `description' to `synopsis', and `long-description' to `description'. * tests/packages.scm, distro/packages/base.scm, distro/packages/databases.scm, distro/packages/guile.scm, distro/packages/typesetting.scm: Update accordingly. * po/Makevars (XGETTEXT_OPTIONS): Update `--keyword' flags accordingly.
2012-10-27guix-build: Gracefully handle `&package-input-error' conditions.Ludovic Courtès
* guix/packages.scm: Export `package-error?' and `package-input-error?'. * guix-build.in (guix-build): Catch `&package-input-error' conditions, print a human-readable message, and exit.
2012-10-25packages: Pass `system' around.Ludovic Courtès
* guix/packages.scm (package-source-derivation): Add `system' parameter. Pass it to METHOD. (package-derivation)[expand-input]: Pass SYSTEM to `package-derivation' and `package-source-derivation'. * distro/packages/base.scm (package-with-bootstrap-guile)[boot]: Pass SYSTEM to FETCH.
2012-10-21packages: Add support for system-dependent inputs.Ludovic Courtès
* guix/packages.scm (package-derivation)[intern]: New procedure. Pass #t as the `recursive?' argument, instead of #f. [expand-input]: New procedure, with code formerly in the body. Support inputs where the input is a procedure returning a file name or an <origin>. Use `expand-input' in the body. * tests/packages.scm ("trivial with system-dependent input"): New test.
2012-10-08packages: Fix and optimize memoization of `package-derivation'.Ludovic Courtès
* guix/packages.scm (%derivation-cache): Pass an initial size of 100. (cache): Use `hashq-set!', and use a SYSTEM/DRV pair as the value. (cached-derivation): Update accordingly.
2012-10-08packages: Micro-optimize `package-derivation'.Ludovic Courtès
* guix/packages.scm (package-derivation): Move `cache' call before the traversal of PACKAGE's inputs.
2012-09-10Add (guix build-system trivial).Ludovic Courtès
* guix/build-system/trivial.scm: New file. * Makefile.am (MODULES): Add it. * tests/packages.scm ("trivial"): New test. * guix/packages.scm (package-derivation): Allow SOURCE to be #f.
2012-09-06packages: Accept <origin> as package inputs.Ludovic Courtès
* guix/packages.scm (package-derivation): Accept use of an <origin> as an input.
2012-09-05packages: Add `package-full-name'.Ludovic Courtès
* guix/packages.scm (package-full-name): New procedure. (package-derivation): Use it.
2012-09-03Move <location> to (guix utils).Ludovic Courtès
* guix/packages.scm (<location>, location): Move to... * guix/utils.scm: ... here.
2012-09-02packages: Add `package-transitive-propagated-inputs'.Ludovic Courtès
* guix/packages.scm (transitive-inputs): New procedure. (package-transitive-inputs): Rewrite in terms of `transitive-inputs'. (package-transitive-propagated-inputs): New procedure.
2012-09-02packages: Cache the result of `package-derivation'.Ludovic Courtès
* guix/packages.scm (%derivation-cache): New variable. (cache, cached-derivation): New procedures. (package-derivation): Use them.
2012-09-02packages: Add a printer for <package>.Ludovic Courtès
* guix/packages.scm (<package>): Add record printer.
2012-08-23packages: Raise an error condition upon invalid input.Ludovic Courtès
* guix/packages.scm (&package-error, &package-input-error): New condition types. (package-derivation): Raise a `&package-input-error' when no match is made.
2012-08-16packages: Add all non-derivation paths to the store.Ludovic Courtès
* guix/packages.scm (package-derivation): Add all non-derivation paths to the store.
2012-08-16packages: Allow store paths as inputs.Ludovic Courtès
* guix/packages.scm (package-derivation): Allow non-derivation store paths as inputs.
2012-07-07Add `package-transitive-inputs'; use it to honor propagated inputs.Ludovic Courtès
* guix/packages.scm (package-transitive-inputs): New procedure. (package-derivation): Use it to compute INPUTS. * tests/packages.scm (dummy-package): New macro. ("package-transitive-inputs"): New test.
2012-07-05packages: Allow inputs that are local files.Ludovic Courtès
* guix/packages.scm (package-derivation): Add to the store inputs that are local files.
2012-07-05packages: Add a `self-native-input?' field.Ludovic Courtès
* guix/packages.scm (<package>)[self-native-input?]: New field. (package-derivation): Update/fix pattern.
2012-07-03Rename <package-source> to <origin>; use the `letrec*' behavior in packages.Ludovic Courtès
* guix/packages.scm (<package-source>): Rename to... (<origin>): ... this. Update users. * distro/base.scm (libsigsegv, gawk, hello): Adjust to renaming; refer to VERSION to build the URL.
2012-07-02Add a `base32' macro, for convenience.Ludovic Courtès
* guix/packages.scm (base32): New macro. * distro/base.scm (libsigsegv, gawk, hello): Use it.
2012-07-02packages: Allow the `arguments' field to be a procedure.Ludovic Courtès
* guix/packages.scm (package-derivation): When ARGS is a procedure, call (ARGS SYSTEM). * distro/base.scm (gawk)[arguments]: Turn into a procedure, to disable tests on Cygwin.
2012-07-02Add `propagated-inputs' and `properties' to <package>.Ludovic Courtès
* guix/packages.scm (<package>)[propagated-inputs, properties]: New fields. (package-derivation): Update `match' clause.
2012-06-29distro: Add libsigsegv and GNU Awk.Ludovic Courtès
* guix/packages.scm (<package>)[arguments]: Default to '(). * distro/base.scm (libsigsegv, gawk): New packages. (hello): Use GAWK instead of (nixpkgs-derivation "gawk").
2012-06-28packages: Add a `home-page' field.Ludovic Courtès
* guix/packages.scm (<package>)[home-page]: New field. * distro/base.scm (hello)[home-page]: Initialize.
2012-06-28Track the source location of packages.Ludovic Courtès
* guix/packages.scm (<location>): New record type. (location, source-properties->location): New procedures. (<package>)[location]: New field. * tests/packages.scm ("GNU Hello"): Test `package-location'.
2012-06-28Add a declarative packaging layer.Ludovic Courtès
* Makefile.am (MODULES): Add `guix/packages.scm' and `distro/base.scm'. (TESTS): Add `tests/packages.scm'. (EXTRA_DIST): New variable. * guix/packages.scm, distro/base.scm, tests/packages.scm: New files. * guix/http.scm (http-fetch): Make `name' an optional argument, to match the expectations of `package-source-derivation'.