mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
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.
This commit is contained in:
parent
a22dc0c49a
commit
4e45e35266
1 changed files with 9 additions and 2 deletions
|
@ -447,8 +447,15 @@ (define (license-variable license)
|
|||
(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))))))
|
||||
|
|
Loading…
Reference in a new issue