starship: expose config-schema.json via passthru.jsonschema

This commit is contained in:
Sebastián Estrella
2026-08-02 23:36:48 -05:00
parent 6d0de9ed9d
commit 2a5f4efddf
+8 -2
View File
@@ -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 = {