Skip to content

Commit 940082e

Browse files
committed
Update self
1 parent 0aa96f6 commit 940082e

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
use nix
1+
use flake

.generator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 0.1.0-2-g6148546
2+
_commit: 0.1.0-7-g0aa96f6
33
_src_path: https://github.com/fastapi-mvc/copier-generator
44
copyright_date: 2022
55
generator: generator

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ Prerequisites:
1313
* copier 6.2.0 or later
1414

1515
```shell
16-
copier copy "https://github.com/fastapi-mvc/copier-generator.git" /path/to/your/new/project
16+
copier copy "https://github.com/fastapi-mvc/copier-generator.git" /path/to/your/new/generator
1717
```
1818

1919
## Using Nix
2020

21+
Prerequisites:
22+
23+
* Nix 2.8.x or later installed [How to install Nix](https://nixos.org/download.html)
24+
2125
```shell
2226
nix develop
23-
copier copy "https://github.com/fastapi-mvc/copier-generator.git" /path/to/your/new/project
27+
copier copy "https://github.com/fastapi-mvc/copier-generator.git" /path/to/your/new/generator
2428
```
2529

2630
## Updating
@@ -35,9 +39,8 @@ nix run .#update
3539

3640
This action will not update/override your template and its configuration, but rather generators common files:
3741

38-
* Environment (`pyproject.toml` and `poetry.lock`)
39-
* `README.md`
4042
* Nix expression files
43+
* `README.md`
4144
* dotfiles
4245
* `LICENSE`
4346

@@ -51,5 +54,7 @@ List of excluded files/paths:
5154
Lastly, you can pass extra copier CLI options should you choose:
5255

5356
```shell
54-
./update.sh -x README.md
57+
./update.sh -x README.md --vcs-ref=custom_branch
58+
# Or
59+
nix run .#update -- -x README.md --vcs-ref=custom_branch
5560
```

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
buildInputs = [
6161
pkgs.git
6262
pkgs.coreutils
63+
pkgs.poetry
6364
];
6465
});
6566
};

0 commit comments

Comments
 (0)