From a415922a46d6ebb4ce0d9d5521512bc80dcfa84f Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 08:40:18 -0700 Subject: [PATCH] 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`. --- komorebi-for-kde/justfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/komorebi-for-kde/justfile b/komorebi-for-kde/justfile index d90cb2fd..bf906061 100644 --- a/komorebi-for-kde/justfile +++ b/komorebi-for-kde/justfile @@ -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"