Closed srid closed 5 months ago
Enrich flake templates with a params attribute (eventually, these params will be upstreamed to the respective repos) that defines what to replace in the generated project directory post nix flake init.
params
nix flake init
This is meant to be consumed by https://github.com/juspay/flakreate which program does the following:
Here's what it looks like to initialize https://github.com/juspay/nix-dev-home whilst doing the appropriate replacements (user name, email):
https://asciinema.org/a/rCOqlKyA3Og8b5WalKV9d1k97
To try this out locally,
nix run github:juspay/flakreate
I'll merge this now, but we can continue the conversation for what the final params spec should be, in https://github.com/flake-parts/templates/pull/7
Enrich flake templates with a
params
attribute (eventually, these params will be upstreamed to the respective repos) that defines what to replace in the generated project directory postnix flake init
.This is meant to be consumed by https://github.com/juspay/flakreate which program does the following:
nix flake init
on itparams
spec, as you can see defined in this PR)Here's what it looks like to initialize https://github.com/juspay/nix-dev-home whilst doing the appropriate replacements (user name, email):
https://asciinema.org/a/rCOqlKyA3Og8b5WalKV9d1k97
To try this out locally,