diff options
| -rw-r--r-- | Makefile.am | 4 | ||||
| -rw-r--r-- | README | 2 | ||||
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | distro/packages/databases.scm | 8 | ||||
| -rw-r--r-- | distro/packages/guile.scm | 2 | ||||
| -rw-r--r-- | distro/packages/typesetting.scm | 2 | ||||
| -rw-r--r-- | guix/utils.scm | 3 | ||||
| -rw-r--r-- | release.nix | 4 |
8 files changed, 15 insertions, 15 deletions
diff --git a/Makefile.am b/Makefile.am index 8a564624b93..0621cb8c001 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -171,5 +171,5 @@ info_TEXINFOS = doc/guix.texi | |||
| 171 | EXTRA_DIST += doc/fdl-1.3.texi | 171 | EXTRA_DIST += doc/fdl-1.3.texi |
| 172 | 172 | ||
| 173 | ACLOCAL_AMFLAGS = -I m4 | 173 | ACLOCAL_AMFLAGS = -I m4 |
| 174 | AM_DISTCHECK_CONFIGURE_FLAGS = \ | 174 | AM_DISTCHECK_CONFIGURE_FLAGS = \ |
| 175 | --with-nixpkgs=$(NIXPKGS) --with-nix-prefix="$(NIX_PREFIX)" | 175 | --with-nix-prefix="$(NIX_PREFIX)" |
| @@ -19,7 +19,7 @@ Guix currently depends on the following packages: | |||
| 19 | - [[http://nixos.org/nix/][Nix]] | 19 | - [[http://nixos.org/nix/][Nix]] |
| 20 | - [[http://gnupg.org/][GNU libgcrypt]], or [[http://nongnu.org/libchop/][libchop]] | 20 | - [[http://gnupg.org/][GNU libgcrypt]], or [[http://nongnu.org/libchop/][libchop]] |
| 21 | 21 | ||
| 22 | For bootstrapping purposes, it is useful to reuse packages from Nixpkgs. | 22 | Optionally, packages from Nixpkgs may be transparently reused from Guix. |
| 23 | For this to work, you need to have a checkout of the Nixpkgs repository; | 23 | For this to work, you need to have a checkout of the Nixpkgs repository; |
| 24 | the `--with-nixpkgs' option allows you to let `configure' know where the | 24 | the `--with-nixpkgs' option allows you to let `configure' know where the |
| 25 | Nixpkgs checkout is. | 25 | Nixpkgs checkout is. |
diff --git a/configure.ac b/configure.ac index d9a5f07f4f8..85bd20e2be4 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -52,13 +52,12 @@ AC_ARG_WITH([nixpkgs], | |||
| 52 | esac], | 52 | esac], |
| 53 | []) | 53 | []) |
| 54 | 54 | ||
| 55 | AC_MSG_CHECKING([for Nixpkgs source tree]) | ||
| 55 | if test -f "$NIXPKGS/default.nix"; then | 56 | if test -f "$NIXPKGS/default.nix"; then |
| 56 | AC_MSG_CHECKING([for Nixpkgs source tree]) | ||
| 57 | AC_MSG_RESULT([$NIXPKGS]) | 57 | AC_MSG_RESULT([$NIXPKGS]) |
| 58 | AC_SUBST([NIXPKGS]) | 58 | AC_SUBST([NIXPKGS]) |
| 59 | else | 59 | else |
| 60 | AC_MSG_WARN([Nixpkgs not found; this will prevent most tests from running.]) | 60 | AC_MSG_RESULT([not found]) |
| 61 | AC_MSG_WARN([Please use `--with-nixpkgs'.]) | ||
| 62 | fi | 61 | fi |
| 63 | 62 | ||
| 64 | AC_ARG_WITH([libgcrypt-prefix], | 63 | AC_ARG_WITH([libgcrypt-prefix], |
diff --git a/distro/packages/databases.scm b/distro/packages/databases.scm index 5c42ef142b2..9cae6916f9d 100644 --- a/distro/packages/databases.scm +++ b/distro/packages/databases.scm | |||
| @@ -41,10 +41,10 @@ | |||
| 41 | (base32 | 41 | (base32 |
| 42 | "1v2xzwwwhc5j5kmvg4sv6baxjpsfqh8ln7ilv4mgb1408rs7xmky")))) | 42 | "1v2xzwwwhc5j5kmvg4sv6baxjpsfqh8ln7ilv4mgb1408rs7xmky")))) |
| 43 | (build-system gnu-build-system) | 43 | (build-system gnu-build-system) |
| 44 | (inputs `(("curl" ,(nixpkgs-derivation* "curl")) | 44 | (inputs `(("curl" ,(nixpkgs-derivation "curl")) |
| 45 | ("emacs" ,(nixpkgs-derivation* "emacs")) | 45 | ("emacs" ,(nixpkgs-derivation "emacs")) |
| 46 | ("check" ,(nixpkgs-derivation* "check")) | 46 | ("check" ,(nixpkgs-derivation "check")) |
| 47 | ("bc" ,(nixpkgs-derivation* "bc")) | 47 | ("bc" ,(nixpkgs-derivation "bc")) |
| 48 | ("patch/gets" | 48 | ("patch/gets" |
| 49 | ,(search-patch "diffutils-gets-undeclared.patch")))) | 49 | ,(search-patch "diffutils-gets-undeclared.patch")))) |
| 50 | (arguments `(#:patches (list (assoc-ref %build-inputs "patch/gets")))) | 50 | (arguments `(#:patches (list (assoc-ref %build-inputs "patch/gets")))) |
diff --git a/distro/packages/guile.scm b/distro/packages/guile.scm index 8c25ee9af68..464379bc47a 100644 --- a/distro/packages/guile.scm +++ b/distro/packages/guile.scm | |||
| @@ -45,7 +45,7 @@ or 2.0." | |||
| 45 | "1svlyk5pm4fsdp2g7n6qffdl6fdggxnlicj0jn9s4lxd63gzxy1n")))) | 45 | "1svlyk5pm4fsdp2g7n6qffdl6fdggxnlicj0jn9s4lxd63gzxy1n")))) |
| 46 | (build-system gnu-build-system) | 46 | (build-system gnu-build-system) |
| 47 | (native-inputs `(("pkgconfig" ,pkg-config) | 47 | (native-inputs `(("pkgconfig" ,pkg-config) |
| 48 | ("gperf" ,(nixpkgs-derivation* "gperf")))) | 48 | ("gperf" ,(nixpkgs-derivation "gperf")))) |
| 49 | (inputs `(("guile" ,guile))) | 49 | (inputs `(("guile" ,guile))) |
| 50 | (description "Guile-Reader, a simple framework for building readers for | 50 | (description "Guile-Reader, a simple framework for building readers for |
| 51 | GNU Guile") | 51 | GNU Guile") |
diff --git a/distro/packages/typesetting.scm b/distro/packages/typesetting.scm index 5ca33c628a4..40c9e998a06 100644 --- a/distro/packages/typesetting.scm +++ b/distro/packages/typesetting.scm | |||
| @@ -94,7 +94,7 @@ | |||
| 94 | "12gkyqrn0kaa8xq7sc7v3wm407pz2fxg9ngc75aybhi5z825b9vq")))) | 94 | "12gkyqrn0kaa8xq7sc7v3wm407pz2fxg9ngc75aybhi5z825b9vq")))) |
| 95 | (build-system gnu-build-system) ; actually, just a makefile | 95 | (build-system gnu-build-system) ; actually, just a makefile |
| 96 | (outputs '("out" "doc")) | 96 | (outputs '("out" "doc")) |
| 97 | (inputs `(("ghostscript" ,(nixpkgs-derivation* "ghostscript")))) | 97 | (inputs `(("ghostscript" ,(nixpkgs-derivation "ghostscript")))) |
| 98 | (arguments `(#:modules ((guix build utils) | 98 | (arguments `(#:modules ((guix build utils) |
| 99 | (guix build gnu-build-system) | 99 | (guix build gnu-build-system) |
| 100 | (srfi srfi-1)) ; we need SRFI-1 | 100 | (srfi srfi-1)) ; we need SRFI-1 |
diff --git a/guix/utils.scm b/guix/utils.scm index 3e334f9fa65..287a6d4f3aa 100644 --- a/guix/utils.scm +++ b/guix/utils.scm | |||
| @@ -458,7 +458,8 @@ starting from the right of S." | |||
| 458 | (define %nixpkgs-directory | 458 | (define %nixpkgs-directory |
| 459 | (make-parameter | 459 | (make-parameter |
| 460 | ;; Capture the build-time value of $NIXPKGS. | 460 | ;; Capture the build-time value of $NIXPKGS. |
| 461 | (compile-time-value (getenv "NIXPKGS")))) | 461 | (or (compile-time-value (getenv "NIXPKGS")) |
| 462 | (getenv "NIXPKGS")))) | ||
| 462 | 463 | ||
| 463 | (define* (nixpkgs-derivation attribute #:optional (system (%current-system))) | 464 | (define* (nixpkgs-derivation attribute #:optional (system (%current-system))) |
| 464 | "Return the derivation path of ATTRIBUTE in Nixpkgs." | 465 | "Return the derivation path of ATTRIBUTE in Nixpkgs." |
diff --git a/release.nix b/release.nix index 05a14a89cfe..67e096ffc1b 100644 --- a/release.nix +++ b/release.nix | |||
| @@ -51,7 +51,7 @@ let | |||
| 51 | buildInputs = with pkgs; [ guile ]; | 51 | buildInputs = with pkgs; [ guile ]; |
| 52 | buildNativeInputs = with pkgs; [ texinfo gettext cvs pkgconfig ]; | 52 | buildNativeInputs = with pkgs; [ texinfo gettext cvs pkgconfig ]; |
| 53 | configureFlags = | 53 | configureFlags = |
| 54 | [ "--with-nixpkgs=${nixpkgs}" "--with-nix-prefix=${pkgs.nix}" ]; | 54 | [ "--with-nix-prefix=${pkgs.nix}" ]; |
| 55 | }; | 55 | }; |
| 56 | 56 | ||
| 57 | build = | 57 | build = |
| @@ -64,7 +64,7 @@ let | |||
| 64 | buildNativeInputs = [ pkgs.pkgconfig ]; | 64 | buildNativeInputs = [ pkgs.pkgconfig ]; |
| 65 | src = jobs.tarball; | 65 | src = jobs.tarball; |
| 66 | configureFlags = | 66 | configureFlags = |
| 67 | [ "--with-nixpkgs=${nixpkgs}" "--with-nix-prefix=${pkgs.nix}" | 67 | [ "--with-nix-prefix=${pkgs.nix}" |
| 68 | "--with-libgcrypt-prefix=${pkgs.libgcrypt}" | 68 | "--with-libgcrypt-prefix=${pkgs.libgcrypt}" |
| 69 | ]; | 69 | ]; |
| 70 | 70 | ||
