~ruther/guix-local

4e45e352663f51d4b669256373819f8bc6fbd489 — Ludovic Courtès 12 years ago a22dc0c
snix: Prefer descriptions from the Womb rather than from Nixpkgs.

* guix/snix.scm (snix-derivation->guix-package): Use
  'gnu-package-doc-description' as the description for GNU packages.
1 files changed, 9 insertions(+), 2 deletions(-)

M guix/snix.scm
M guix/snix.scm => guix/snix.scm +9 -2
@@ 447,8 447,15 @@ location of DERIVATION."
                   (and=> (find-attribute-by-name "description" meta)
                          attribute-value)))
             (description
              ,(and=> (find-attribute-by-name "longDescription" meta)
                      attribute-value))
              ;; Likewise, prefer the official description of GNU packages.
              ,(or (false-if-exception
                    (and=> (find (lambda (gnu-package)
                                   (equal? (gnu-package-name gnu-package)
                                           name))
                                 (official-gnu-packages))
                           gnu-package-doc-description))
                   (and=> (find-attribute-by-name "longDescription" meta)
                          attribute-value)))
             (license ,(and=> (find-attribute-by-name "license" meta)
                              (compose license-variable attribute-value))))
          loc))))))