From e3ce5d709f3ba6a3f3a94a24c20a9cd87e6bd07d Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 28 Jun 2012 01:24:34 +0200 Subject: Add a declarative packaging layer. * 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'. --- guix/http.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'guix/http.scm') diff --git a/guix/http.scm b/guix/http.scm index 21234b388f..97ed3983f1 100644 --- a/guix/http.scm +++ b/guix/http.scm @@ -28,7 +28,8 @@ (define-module (guix http) ;;; Code: (define* (http-fetch store url hash-algo hash - #:key name (system (%current-system))) + #:optional name + #:key (system (%current-system))) "Return the path of a fixed-output derivation in STORE that fetches URL, which is expected to have hash HASH of type HASH-ALGO (a symbol). By default, the file name is the base name of URL; optionally, NAME can specify -- cgit v1.2.3