starship: expose config-schema.json via passthru.jsonschema (#548639)

This commit is contained in:
Fernando Rodrigues
2026-08-03 06:52:43 +00:00
committed by GitHub
+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 = {