File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
5252nix 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
You can’t perform that action at this time.
0 commit comments