From 9910e66a4e3a34668652d25c938d653dddb5756d Mon Sep 17 00:00:00 2001 From: Zheng Junjie Date: Thu, 9 Jan 2025 22:59:25 +0800 Subject: [PATCH] team: kde: Add kde-manifest.scm. Change-Id: I3455131286e014751fe58c41180fff37b27ac920 --- etc/teams/kde/kde-manifest.scm | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 etc/teams/kde/kde-manifest.scm diff --git a/etc/teams/kde/kde-manifest.scm b/etc/teams/kde/kde-manifest.scm new file mode 100644 index 0000000000..e43b6eec40 --- /dev/null +++ b/etc/teams/kde/kde-manifest.scm @@ -0,0 +1,45 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2025 Zheng Junjie <873216071@qq.com> +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . +;;; Commentary: +;;; +;;; Code: + +(use-modules (guix packages) + (guix profiles) + (srfi srfi-1) + (srfi srfi-2)) + +(manifest + (map package->manifest-entry + (fold-packages + (lambda (package lst) + (if (or (and-let* ((uri (and=> (package-source package) + (lambda (x) + (and (origin? x) + (origin-uri x))))) + ((string? uri))) + (string-prefix? "mirror://kde/" uri)) + (any + (lambda (pkg) + (string=? "extra-cmake-modules" (first pkg))) + (append (package-native-inputs package) + (package-propagated-inputs package) + (package-inputs package)))) + (cons package lst) + lst)) + (list))))