Skip to content

Commit ab53796

Browse files
committed
chore(README): format nix codeblock and paragraph better
1 parent 13fd0ce commit ab53796

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ cargo run --release --no-default-features -- --help
4545

4646
### with nix
4747

48-
the nix flake exports a package with an overridable `features` attribute. `default.nix` exports two variants using this,
49-
`ssh-portfolio` and `ssh-portfolio-blog`.
48+
the nix flake exports a package with an overridable `features` attribute. `default.nix`
49+
exports two variants using this, `ssh-portfolio` and `ssh-portfolio-blog`.
5050

5151
```sh
5252
nix build --file . ssh-portflio # without blog
@@ -61,8 +61,9 @@ or with your own set of features to build for:
6161
```nix
6262
# assuming this is in `custom.nix` in the same directory as `flake.nix`:
6363
{ pkgs ? import <nixpkgs> { } }:
64-
{
65-
ssh-portfolio-custom = (builtins.getFlake (builtins.toString ./.)).packages.${pkgs.system}.ssh-portfolio.override { features = [ ... ]; };
64+
rec {
65+
ssh-portfolio = (builtins.getFlake (builtins.toString ./.)).packages.${pkgs.system}.ssh-portfolio;
66+
ssh-portfolio-custom = ssh-portfolio.override { features = [ ... ]; };
6667
}
6768
```
6869

0 commit comments

Comments
 (0)