summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/teams/qt/common.scm50
-rw-r--r--etc/teams/qt/qt-manifest.scm34
-rw-r--r--etc/teams/qt/qt5-manifest.scm34
3 files changed, 118 insertions, 0 deletions
diff --git a/etc/teams/qt/common.scm b/etc/teams/qt/common.scm
new file mode 100644
index 00000000000..8e11ac220bc
--- /dev/null
+++ b/etc/teams/qt/common.scm
@@ -0,0 +1,50 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19;;; This file returns a manifest of packages related to linux-libre.
20;;; Simplistically, it selects packages whose names begin with "linux-libre".
21;;; It is used to assist continuous integration of the kernel packages.
22
23(use-modules (guix packages)
24 (guix profiles)
25 (guix utils)
26 (gnu packages))
27
28(define* (qt-packages-manifest #:key major-version negate-version-test?)
29 "Return a manifest of Qt packages for MAJOR-VERSION, or any version if left
30unspecified. If NEGATE-VERSION-TEST? is true, select all the Qt packages
31*not* matching MAJOR-VERSION."
32 (manifest
33 (map package->manifest-entry
34 (fold-packages
35 (lambda (package lst)
36 (let ((uri (and=> (package-source package)
37 (lambda (x)
38 (and (origin? x)
39 (origin-uri x))))))
40 (if (and uri
41 (string? uri)
42 (string-prefix? "mirror://qt/" uri)
43 (if major-version
44 ((if negate-version-test? not identity)
45 (string=? major-version (version-major
46 (package-version package))))
47 #t))
48 (cons package lst)
49 lst)))
50 '()))))
diff --git a/etc/teams/qt/qt-manifest.scm b/etc/teams/qt/qt-manifest.scm
new file mode 100644
index 00000000000..0d8fa95bfe1
--- /dev/null
+++ b/etc/teams/qt/qt-manifest.scm
@@ -0,0 +1,34 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19;;; This file returns a manifest of packages related to linux-libre.
20;;; Simplistically, it selects packages whose names begin with "linux-libre".
21;;; It is used to assist continuous integration of the kernel packages.
22
23(load "common.scm")
24
25;;; Commentary:
26;;;
27;;; This manifest can be used to update the latest Qt packages collection, via
28;;; e.g.:
29;;;
30;;; ./pre-inst-env guix refresh -u -m etc/teams/qt/qt-manifest.scm
31;;;
32;;; Code:
33
34(qt-packages-manifest #:major-version "5" #:negate-version-test? #t)
diff --git a/etc/teams/qt/qt5-manifest.scm b/etc/teams/qt/qt5-manifest.scm
new file mode 100644
index 00000000000..34fdf479bf1
--- /dev/null
+++ b/etc/teams/qt/qt5-manifest.scm
@@ -0,0 +1,34 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19;;; This file returns a manifest of packages related to linux-libre.
20;;; Simplistically, it selects packages whose names begin with "linux-libre".
21;;; It is used to assist continuous integration of the kernel packages.
22
23(load "common.scm")
24
25;;; Commentary:
26;;;
27;;; This manifest can be used to update the Qt 5 packages collection, via
28;;; e.g.:
29;;;
30;;; ./pre-inst-env guix refresh -u -m etc/teams/qt/qt5-manifest.scm --target-version=5.15.10
31;;;
32;;; Code:
33
34(qt-packages-manifest #:major-version "5")