starship: expose config-schema.json via passthru.jsonschema (#548639)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user