summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHerman Rimm <herman@rimm.ee>2025-01-21 22:43:01 +0100
committerLudovic Courtès <ludo@gnu.org>2025-02-09 18:20:41 +0100
commit6ad2e407ebb6bf87bc30cc30d1b6f9d688a17854 (patch)
tree0699ac3990f381456fbb653f381a18c373b54fa6 /tests
parent0950b726f231a2eae3133e56aac15a935ace057e (diff)
scripts: style: Sort more kinds of package definitions.
* guix/scripts/style.scm (order-packages): Match comments before package S-exp. and its fields. Match in let. Match package/inherit. * tests/guix-style.sh: Add pkg-baz variable and package/inherit to test. Change-Id: I48a5976930501c20415b5413966b5294958bc23b Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-style.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/guix-style.sh b/tests/guix-style.sh
index 9333139435..703e148b69 100644
--- a/tests/guix-style.sh
+++ b/tests/guix-style.sh
@@ -65,10 +65,16 @@ cat > "$tmpfile" <<EOF
(name "bar")
(version "2")))
+(define-public pkg-baz
+ (let ()
+ (package
+ (name "baz")
+ (version "2"))))
+
;; The comment below belongs to the foo package.
(define-public pkg
- (package
- (name "bar")
+ (package/inherit pkg-baz
+ (name "baz")
(version "1")))
;; Incomplete package definitions in alphabetical order.