From: Alyssa Ross <hi@alyssa.is>
To: devel@spectrum-os.org
Cc: Demi Marie Obenour <demiobenour@gmail.com>
Subject: [PATCH 2/2] release/checks/shfmt: init
Date: Wed, 1 Oct 2025 12:27:42 +0200 [thread overview]
Message-ID: <20251001102838.7086-3-hi@alyssa.is> (raw)
In-Reply-To: <20251001102838.7086-1-hi@alyssa.is>
Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
release/checks/default.nix | 2 ++
release/checks/shfmt.nix | 15 +++++++++++++++
2 files changed, 17 insertions(+)
create mode 100644 release/checks/shfmt.nix
diff --git a/release/checks/default.nix b/release/checks/default.nix
index 7d49dc9..ac47cb3 100644
--- a/release/checks/default.nix
+++ b/release/checks/default.nix
@@ -26,6 +26,8 @@ import ../../lib/call-package.nix ({ callSpectrumPackage }:
shellcheck = callSpectrumPackage ./shellcheck.nix {};
+ shfmt = callSpectrumPackage ./shfmt.nix {};
+
uncrustify = callSpectrumPackage ./uncrustify.nix {};
wayland = callSpectrumPackage ./wayland {};
diff --git a/release/checks/shfmt.nix b/release/checks/shfmt.nix
new file mode 100644
index 0000000..bd626ad
--- /dev/null
+++ b/release/checks/shfmt.nix
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: 2025 Alyssa Ross <hi@alyssa.is>
+
+import ../../lib/call-package.nix ({ src, lib, runCommand, shfmt }:
+
+runCommand "spectrum-shfmt" {
+ src = lib.fileset.toSource {
+ root = ../..;
+ fileset = src;
+ };
+ nativeBuildInputs = [ shfmt ];
+} ''
+ shfmt -d $src
+ touch $out
+'') (_: {})
--
2.51.0
next prev parent reply other threads:[~2025-10-01 10:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-01 10:27 [PATCH 0/2] release/checks/shfmt: init Alyssa Ross
2025-10-01 10:27 ` [PATCH 1/2] scripts: format with shfmt Alyssa Ross
2025-10-01 17:45 ` Demi Marie Obenour
2025-10-02 9:52 ` Alyssa Ross
2025-11-09 18:58 ` Alyssa Ross
2025-10-01 10:27 ` Alyssa Ross [this message]
2025-11-09 18:59 ` [PATCH 2/2] release/checks/shfmt: init Alyssa Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251001102838.7086-3-hi@alyssa.is \
--to=hi@alyssa.is \
--cc=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).