diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-06-20 23:44:42 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-06-20 23:44:42 +0200 |
commit | f513527a8ed3faa0ed45f027430c69be97d9ca02 (patch) | |
tree | a23ecdebf45d6afcad7f09e853e90c159888cdc5 /guix/build-system/gnu.scm | |
parent | 2eea253f4ddefa12a476f22d52928227d971a7fa (diff) | |
parent | 00fe93338d5cd29b4d565749b5842a7477d0477c (diff) | |
download | guix-patches-f513527a8ed3faa0ed45f027430c69be97d9ca02.tar guix-patches-f513527a8ed3faa0ed45f027430c69be97d9ca02.tar.gz |
Merge branch 'core-updates'
Diffstat (limited to 'guix/build-system/gnu.scm')
-rw-r--r-- | guix/build-system/gnu.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm index 0c3f1ea4e3..4fa1d1683d 100644 --- a/guix/build-system/gnu.scm +++ b/guix/build-system/gnu.scm @@ -33,7 +33,8 @@ package-with-extra-configure-variable static-libgcc-package static-package - dist-package)) + dist-package + package-with-restricted-references)) ;; Commentary: ;; @@ -190,6 +191,15 @@ runs `make distcheck' and whose result is one or more source tarballs." ("gettext" ,(ref '(gnu packages gettext) 'gnu-gettext)) ("texinfo" ,(ref '(gnu packages texinfo) 'texinfo)))))))) +(define (package-with-restricted-references p refs) + "Return a package whose outputs are guaranteed to only refer to the packages +listed in REFS." + (if (eq? (package-build-system p) gnu-build-system) ; XXX: dirty + (package (inherit p) + (arguments `(#:allowed-references ,refs + ,@(package-arguments p)))) + p)) + (define %store ;; Store passed to STANDARD-INPUTS. |