From 2a5f4efddf8f69a35f775f97f3fb6fa378375c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Estrella?= <2049686+sestrella@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:49:40 -0500 Subject: [PATCH] starship: expose `config-schema.json` via `passthru.jsonschema` --- pkgs/by-name/st/starship/package.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/st/starship/package.nix b/pkgs/by-name/st/starship/package.nix index d24d03b9a61d..f9696fd123c4 100644 --- a/pkgs/by-name/st/starship/package.nix +++ b/pkgs/by-name/st/starship/package.nix @@ -34,6 +34,7 @@ rustPlatform.buildRustPackage (finalAttrs: { presetdir=$out/share/starship/presets/ mkdir -p $presetdir cp docs/public/presets/toml/*.toml $presetdir + install -Dm644 .github/config-schema.json $out/share/starship/config-schema.json '' + lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( let @@ -55,8 +56,13 @@ rustPlatform.buildRustPackage (finalAttrs: { writableTmpDirAsHomeHook ]; - passthru.tests = { - inherit (nixosTests) starship; + passthru = { + jsonschema = { + config = "${finalAttrs.finalPackage}/share/starship/config-schema.json"; + }; + tests = { + inherit (nixosTests) starship; + }; }; meta = {