diff options
author | Herman Rimm <herman@rimm.ee> | 2025-01-21 22:43:01 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2025-02-09 18:20:41 +0100 |
commit | 6ad2e407ebb6bf87bc30cc30d1b6f9d688a17854 (patch) | |
tree | 0699ac3990f381456fbb653f381a18c373b54fa6 /tests | |
parent | 0950b726f231a2eae3133e56aac15a935ace057e (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.sh | 10 |
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. |