mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
import/print: Return license with prefix.
* guix/import/print.scm (license->code): Prepend license: prefix.
This commit is contained in:
parent
7b2cb1bf19
commit
1475d45112
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2017, 2020 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -57,7 +57,7 @@ (define (variable-name val mod)
|
|||
;; Print either license variable name or the code for a license object
|
||||
(define (license->code lic)
|
||||
(let ((var (variable-name lic '(guix licenses))))
|
||||
(or var
|
||||
(or (symbol-append 'license: var)
|
||||
`(license
|
||||
(name ,(license-name lic))
|
||||
(uri ,(license-uri lic))
|
||||
|
|
Loading…
Reference in a new issue