diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-03-29 21:02:45 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-03-29 21:07:39 +0200 |
commit | 36f78676e59a2087bc7af5582cb8d63eeb37c8c5 (patch) | |
tree | 4c3af3193d31df7dd73a9415107ccbd3f601f269 /guix | |
parent | cbf731ae481b434e657b05c80b4a32282e5d112b (diff) |
import/texlive: Ignore architecture-dependent packages.
* guix/import/texlive.scm (tlpdb->package): Filter "depend" field to exclude
package names ending on ".ARCH".
Diffstat (limited to 'guix')
-rw-r--r-- | guix/import/texlive.scm | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/guix/import/texlive.scm b/guix/import/texlive.scm index 82014ee568..a81805bdca 100644 --- a/guix/import/texlive.scm +++ b/guix/import/texlive.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2017, 2021, 2022 Ricardo Wurmus <rekado@elephly.net> +;;; Copyright © 2017, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; ;;; This file is part of GNU Guix. @@ -260,6 +260,12 @@ of those files are returned that are unexpectedly installed." %texlive-tag "/Master/texmf-dist")) (locations dirs) (revision %texlive-revision))) + ;; Ignore arch-dependent packages. + (filtered-depends + (or (and=> (assoc-ref data 'depend) + (lambda (inputs) + (remove (cut string-suffix? ".ARCH" <>) inputs))) + '())) (source (with-store store (download-multi-svn-to-store store ref (string-append name "-svn-multi-checkout"))))) @@ -278,14 +284,15 @@ of those files are returned that are unexpectedly installed." ;; package->definition in (guix import utils) expects to see a ;; version field. (version ,version) - ,@(or (and=> (assoc-ref data 'depend) - (lambda (inputs) - `((propagated-inputs - (list ,@(map (lambda (tex-name) - (let ((name (guix-name tex-name))) - (string->symbol name))) - inputs)))))) - '()) + ,@(match filtered-depends + (() '()) + (inputs + `((propagated-inputs + (list ,@(map + (lambda (tex-name) + (let ((name (guix-name tex-name))) + (string->symbol name))) + inputs)))))) ,@(or (and=> (assoc-ref data 'catalogue-ctan) (lambda (url) `((home-page ,(string-append "https://ctan.org" url))))) @@ -295,7 +302,7 @@ of those files are returned that are unexpectedly installed." (assoc-ref data 'longdesc))) (license ,(string->license (assoc-ref data 'catalogue-license)))) - (or (assoc-ref data 'depend) (list))))) + filtered-depends))) (define texlive->guix-package (memoize |