mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 22:01:22 +01:00
build(kde): let schemars-nixgen write the schema hash line in nixgen
schemars-nixgen now writes the `# schema-sha256:` first line itself (schemars-nixgen 50ce286), so the justfile's printf and mv step would add a second one. Removes them and updates the comment. Verified: 'just nixgen' itself was not run (the recipe also builds a check); the same steps by hand gave a first line equal to `nix hash file --type sha256 --base16 schema.json`.
This commit is contained in:
1 parent
83819b22b1
commit
a415922a46
1 file changed
+1
-3
@@ -32,12 +32,10 @@ jsonschema:
|
||||
cargo run --package komorebic --locked -- application-specific-configuration-schema > schema.asc.json
|
||||
|
||||
# the options of the module's `config`, from schema.json, with the hash of the schema they were
|
||||
# made from in the first line (the check `schema-fresh` compares it); needs schemars-nixgen
|
||||
# made from in the first line (written by schemars-nixgen; the check `schema-fresh` compares it); needs schemars-nixgen
|
||||
# (`cargo install schemars-nixgen`), which the dev shell does not have
|
||||
nixgen:
|
||||
schemars-nixgen schema.json -o nix/komorebi-options.nix --name komorebi --description "komorebi for KDE Plasma configuration"
|
||||
printf '# schema-sha256: %s\n' "$(nix hash file --type sha256 --base16 schema.json)" | cat - nix/komorebi-options.nix > nix/komorebi-options.nix.new
|
||||
mv nix/komorebi-options.nix.new nix/komorebi-options.nix
|
||||
nix fmt nix/komorebi-options.nix
|
||||
nix build -L --no-link ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem).nix-options-validation"
|
||||
|
||||
|
||||
Reference in new issue
Block a user