From c7bbc05916b5b2cc77b31dce06d17cab4579df34 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 3 Mar 2016 09:02:01 +0100 Subject: website: packages: Honor package replacements. * website/www/packages.scm (all-packages): Cons the 'package-replacement' if it exists. --- website/www/packages.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/www/packages.scm b/website/www/packages.scm index 69b0623..c927a95 100644 --- a/website/www/packages.scm +++ b/website/www/packages.scm @@ -1,5 +1,5 @@ ;;; GuixSD website --- GNU's advanced distro website -;;; Copyright © 2013, 2014, 2015 Ludovic Courtès +;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès ;;; Copyright © 2015 Mathieu Lirzin ;;; Copyright © 2013 Alex Sassmannshausen ;;; Initially written by Luis Felipe López Acevedo @@ -429,7 +429,11 @@ PACKAGES." (define (all-packages) "Return the list of all package objects, sorted by name." - (sort (fold-packages cons '()) + (sort (fold-packages (lambda (package lst) + (cons (or (package-replacement package) + package) + lst)) + '()) (lambda (p1 p2) (string