nix_modules: generate clan.py in top-level shell
Generally I don't think dev shells are the right place to trigger generation of files. This should be part of the formatter and pre-commit hook @hsjobeki
This commit is contained in:
@@ -45,8 +45,5 @@ mkShell {
|
||||
|
||||
# Add clan command to PATH
|
||||
export PATH="$PKG_ROOT/bin":"$PATH"
|
||||
|
||||
# Generate classes.py from schemas
|
||||
${self'.packages.classgen}/bin/classgen ${self'.legacyPackages.schemas.clan-schema-abstract}/schema.json $PKG_ROOT/clan_lib/nix_models/clan.py
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user